springboot+mybatis+gradle
1、查找对应的xml,mapper,entity对应的配置和名称是否相符:名称不符时会报BindingException异常
2、查找appl坡纠课柩ication.properties中的mybatis配置。eg:# 配置文件位置mybatis.con熠硒勘唏fig-location=classpath:config/myBatisConfig.xml#实体类包mybatis.typeAliasesPackage=com.news.model#mapper文件位置mybatis.mapper-locations=classpath:mapper/*.xml
3、当前遇到的就这两种情况,如后面预计其它情况,再进行添加
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:89
阅读量:34
阅读量:75
阅读量:59
阅读量:77