![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java纠错
Hello__Wang
这个作者很懒,什么都没留下…
展开
-
SpringBoot项目中:Property ‘mapperLocations‘ was not specified.
在pom.xml中配置一个maven过滤依赖<build> <!--配置maven过滤--> <resources> <resource> <directory>src/main/java</directory> <includes> <include>原创 2021-06-17 17:05:46 · 3632 阅读 · 0 评论 -
最优解Mybatis:Type interface com.wdzl.dao.AccountDao is not known to the MapperRegistry.
运行程序时出现了如下错误:解决方案:经验告诉我们这句错误是由于配置文件缺失配置导致的~~~在mybatis中添加如下的配置即可:首先找到SqlMapConfig.xml文件然后找到<mappers></mappers>将下面的代码添加进去即可<mapper resource="com/wdzl/dao/AccountDao.xml"></mapper>...原创 2021-03-14 23:09:13 · 154 阅读 · 0 评论