当我们在开发时使用 @Autowired 注入时 idea 报错: Could not autowire. No beans of ‘xxx’ type found. 但项目仍然是不受影响的,若将其更换成 @Resource 后正常,为了能让报错消失,提供以下解决方案。
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!