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

tk.mybatis.spring.mapper.ClassPathMapperScanner #171

Open
KevinMaKai opened this issue May 17, 2020 · 0 comments
Open

tk.mybatis.spring.mapper.ClassPathMapperScanner #171

KevinMaKai opened this issue May 17, 2020 · 0 comments

Comments

@KevinMaKai
Copy link

KevinMaKai commented May 17, 2020

我觉得这个scanner有缺陷,直接调用spring的扫描,如果spring注解扫描过了之后,tk的scanner就扫描不到了,因为spring有校验。。。这就报错啦
Caused by: java.lang.InstantiationException: tk.mybatis.mapper.provider.base.BaseInsertProvider
BaseInsertProvider这个兼容性也不好,应该有个public BaseInsertProvider(Class<?> mapperClass)这样的构造器然后读spring的bean容器,注册MapperHelper

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

1 participant