Fork me on GitHub
摘要: 跑程序时经常会出现Mapper.xml文件找不到情况,这时一般情况是mapper路径配置出现了问题。一般解决方案如下: <resources> <resource> <directory>src/main/resources/com/example/simple</directory> <inclu 阅读全文
posted @ 2020-12-08 09:36 叶语婷 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 早上跑程序的时候出现了这样的提示: 这是因为mybatis-config.xml路径需要是root路径,和src是同级,才能顺利读取到mybatis-config.xml。而此时我的Java文件中mybatis路径是这样: 此时mybatis-config.xmll在config路径下,不是在roo 阅读全文
posted @ 2020-12-08 09:24 叶语婷 阅读(5145) 评论(1) 推荐(1) 编辑