网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

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、当前遇到的就这两种情况,如后面预计其它情况,再进行添加

© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com