當(dāng)mapper-spring-boot-starter的版本為2.0.2時,不會去下載mapper包。這時如果在xml中寫<plugin type="tk.mybatis.mapper.generator.MapperPlugin"></plugin>會報找不到class錯誤。
2018-05-22
課程項目地址https://github.com/leechenxiang/imooc-springboot-starter
Mybatis-Spring地址:
https://github.com/abel533/Mybatis-Spring-Boot
Mybatis-Spring地址:
https://github.com/abel533/Mybatis-Spring-Boot
2018-05-22
終于完成了最終的效果,并不是每一步都是跟視頻一模一樣的,項目右擊run as并沒有spring boot app,直接run as --> java application 也是可以的。百度了好多沒找到右擊run as沒有spring boot app的解決方法。
2018-05-17
java.lang.RuntimeException: Cannot instantiate object of type tk.mybatis.mapper.generator.MapperPlugin
2018-05-17