spring boot的项目启动报 Action: Consider defining a bean of type '#####' in your configuration.的错误

类似如下的报错信息

spring boot的项目启动报 Action: Consider defining a bean of type '#####' in your configuration.的错误

  • **
  • 还以为启动累配置错误,找好半天,才发现是@Autowired注解下的都会自动注入bena,然而这个注解下没有注入,所以报错—其实这里写自动注解是错误的。删掉或者注释掉就没问题了。
  • spring boot的项目启动报 Action: Consider defining a bean of type '#####' in your configuration.的错误

- **