-
Notifications
You must be signed in to change notification settings - Fork 1.8k
There is case that duplicate loading same mapper file when use on Spring Boot 1.4.x(1.4.2 or before) #108
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
Comments
Hi @zxkane, can you provide a repro project on GitHub ? I want to confirm configurations in your application. Thanks. |
Thanks for quick response. You can play it with the test repo( I also observe something else strange. The app can be launched well in ./gradlew clean build
java -jar build/libs/mybatis-spring-boot-test-1.0.0.jar Kane On Wed, Oct 26, 2016 at 10:55 AM, Kazuki Shimizu [email protected]
|
Recommendation (=workaround)Hi @zxkane , I will suggest to use mapper file auto loading feature instead of. (this solution is recommended)
And you can use the
Thanks. |
Kazuki, thank you for having look at this issue deeply. You recommendation is really good. After making those changes, the project Looks like something is broken in spring mvc, pls free to close this issue. Kane On Thu, Oct 27, 2016 at 5:06 AM, Kazuki Shimizu [email protected]
|
Hi guys, there are bug that provides duplicate resources from the Probably, this issue will fix since Spring Boot 1.4.3(Spring 4.3.5). |
spring-projects/spring-boot#7449 has been resolved. (However, it has not been release yet) |
I will update to Spring Boot 1.4.3.RELEASE(+Spring 4.3.5). |
Everything works fine when using mybatis-spring-boot-starter 1.1.1 and spring boot 1.3.8. Even upgrading mybatis lib to latest 3.4.1.
After upgrading spring boot to 1.4.1, I got below exception when launching my app,
The mapper xml looks like below,
Any suggestion?
The text was updated successfully, but these errors were encountered: