解决Could not autowire. No beans of 'MiaoshaUserDao' type found. less... (Ctrl+F1) Inspection info...

Intellij Idea开发工具在@Autowired或者@Resource注入XxxMapper接口时报如下错误:


在你要注入的类上加@Repository 


你可能感兴趣的:(解决Could not autowire. No beans of 'MiaoshaUserDao' type found. less... (Ctrl+F1) Inspection info...)