Could not autowire. No beans of ‘xxxx’ type found的错误提示并不会对结果产生影响。解决办法主要有
1.检查spring auto scan配置,导入正确的包,如import org.springframework.stereotype.Service;。
2.降低Autowired检测的级别,将Severity的级别由之前的error改成warning或其它可以忽略的级别。
Could not autowire. No beans of 'xxxx' type found

3.最大多数是因为dao层的注解写错了 dao层的注解是@Repository 不是@Responsebody
Could not autowire. No beans of 'xxxx' type found

相关文章: