首页 > 其他分享 >expected at least 1 bean which qualifies as autowire candidate

expected at least 1 bean which qualifies as autowire candidate

时间:2023-03-20 13:14:07浏览次数:36  
标签:mapper qualifies autowire candidate least bean expected

 

 报错说No qualifying bean of type 'com.example.ayuntest.mapper.GoodsMapper',所以这时要在Application启动类里面加入@MapperScan("com.example.ayuntest.mapper")扫描mapper文件。

标签:mapper,qualifies,autowire,candidate,least,bean,expected
From: https://www.cnblogs.com/Li-An/p/17235911.html

相关文章