使用MapperScan扫描具体的包,亲测可用。
若存在bean注入失败的情况可考虑是否有无将主启动类置于外层目录下
同时springboot启动停止时添加依赖
org.springframework.boot
spring-boot-starter-web
springboot的autowired注入失败问题
最新推荐文章于 2023-03-06 11:45:46 发布
使用MapperScan扫描具体的包,亲测可用。
若存在bean注入失败的情况可考虑是否有无将主启动类置于外层目录下
同时springboot启动停止时添加依赖
org.springframework.boot
spring-boot-starter-web