Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当xml里定义的接口和BaseMapper里的重合,会报错 #98

Closed
zzz1255 opened this issue Apr 1, 2024 · 1 comment
Closed

当xml里定义的接口和BaseMapper里的重合,会报错 #98

zzz1255 opened this issue Apr 1, 2024 · 1 comment

Comments

@zzz1255
Copy link

zzz1255 commented Apr 1, 2024

使用版本:mapper:2.2.1
一个现有使用mybatis的项目切换到mapper
当mapper.xml里面已经定义某个方法,比如insert,这种情况下使用mapper启动会报错提示
Mapped Statements collection already contains value for xx.xx.insert
是不是以xml里存在的为准去覆盖基础mapper里的,而不是报错

@abel533
Copy link
Contributor

abel533 commented Apr 1, 2024

mybatis自己的机制,xml和注解在同一个命名空间不能重复。

@abel533 abel533 closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants