为了账号安全,请及时绑定邮箱和手机立即绑定

​@xiangzepro:呼叫大神们:No qualifying bean of type 'com.spring.springboot.dao.AreaDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

https://img1.sycdn.imooc.com//5b972c750001d5a816600136.jpg

听说是启动文件,没有用@ComponentScan这个属性扫描,我试着扫描了,好像又报了Failed to load ApplicationContxt错误,它们的截图如下,请大神指点@xiangzepro

https://img1.sycdn.imooc.com//5b972d9a0001e71607150290.jpg

结果运行又报了

https://img1.sycdn.imooc.com//5b972dd30001d6db05570238.jpg

请大神指点

正在回答

1 回答

已解决,使用@MapperScan("com.spring.springboot.dao")

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

​@xiangzepro:呼叫大神们:No qualifying bean of type 'com.spring.springboot.dao.AreaDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信