2021
10-15
10-15
springboot启动扫描不到dao层接口的解决方案
今天启动springboot项目时失败了解决检查原因发现是启动类的MapperScan("")的值写到类名了,改成类所在的包名错误就修复了。springboot扫描不到dao层和controller一、提示Acomponentrequiredabeanoftype‘com.imooc2.product.category.dao.ProductCategoryDao'thatcouldnotbefound即dao层找不到了解决:使用@MapperScan注解或者@MapperScans注解importorg.mybatis.spring.annotation.MapperScan;importorg.springf...
继续阅读 >