一、异常
在Spring Boot项目中使用@Autowired注解,程序启动时发现服务启动失败,提示:
***************************
APPLICATION FAILED TO START
***************************
Description:
Field activeIncrUserService in XXXX.ActiveIncrUserTimer required a bean of type ' XXXX.ActiveIncrUserService' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type