您的位置:首页 > 产品设计 > UI/UE

A component required a bean of type 'com.example...' that could not be found解决办法

2019-01-09 21:10 1286 查看

工程启动报错
A component required a bean of type ‘com.example…’ that could not be found

解决办法一:
1、再启动类添加mapper包扫描注解即可
@MapperScan(“com.example.firstspringboot.dao”)

解决办法二:
在每个mapper接口上添加@mapper注解

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐