-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
在@Configuration中使用Mapper会出现无法初始化的问题 #50
Comments
这是因为通用mapper没有处理通用方法导致的。 如果你用的spring boot,可以直接用 mapper-starter,如果不是 boot,你可以参考xml 中tk.mybatis.spring.mapper.MapperScannerConfigurer,用注解方式配置一个。 |
一样的问题,不知道怎么解决 |
1.2.1版本的starter已解决此问题https://github.com/abel533/mapper-boot-starter |
高版本会出现这个问题,我使用 |
用 1.2.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
异常信息如下:
不在@configuration使用,而在项目启动完成后通过Service调用一切正常。
请问这个是有什么原因引起的?
The text was updated successfully, but these errors were encountered: