springboot中@PostConstruct、CommandLineRunner、BeanPostProcessor执行顺序

如果一个类中分别实现了@PostConstruct、CommandLineRunner、BeanPostProcessor涉及的方法,它们执行的先后顺序:

Constructor(类构造方法) > @Autowired(类中注入的对象) > @PostConstruct > BeanPostProcessor > CommandLineRunner
原文地址:https://www.cnblogs.com/wind1984/p/12672000.html