手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

springboot+mybatis+gradle

时间:2024-11-02 04:36:37

1、查找对应的xml,mapper,entity对应的配置和名称是否相符:名称不符时会报BindingException异常

2、查找application.properties中的mybatis配置。eg:# 配置文件位置mybatis.config-location=classpath:config/myBatisConfig.xml#实体类包mybatis.typeAliasesPackage=com.news.model#mapper文件位置mybatis.mapper-locations=classpath:mapper/*.xml

3、当前遇到的就这两种情况,如后面预计其它情况,再进行添加

© 手抄报圈