Intellij IDEA使用@Autowired注解,出现could not autowire错误,解决方案_could not autowire. no beans of 'stringredistempla-CSDN博客

网站介绍:问题在使用idea编写Spring项目时,经常会使用@Autowired这个注解,实现将Bean自动注入但是有时候会提示Could Not Autowired ,No Beans of ....【总之提示你无法自动装配】效果如下此时分两种情况第一种 : 确实你项目出错了,检查一下spring中这个bean,如果有错则改正这个错,更新一下项目,通常情况下,如果这个Bea..._could not autowire. no beans of 'stringredistemplate' type found.