In the general category of non-springboot factory management, if you want to get the object factory management, we can no longer use such as injection @Autowired comment at this time of issue SpringBoot official has been given a solution, they provide a "ApplicationContextAware" interfaces, implement this interface, you can get the entire contents of the factory management.