首页 > 其他分享> > idea报错“Could not autowire. No beans of 'XXXXXXXX' type found.”解决方案 idea报错“Could not autowire. No beans of 'XXXXXXXX' type found.”解决方案 2022-03-21 14:04:05 作者:互联网 如下报错: 解决方案一:可在数据层上加注解@Repository。 解决方案二:使用注解:@Autowired(required = false) 标签:false,Repository,autowire,Autowired,解决方案,No,报错,注解 来源: https://www.cnblogs.com/lanrenka/p/16034348.html