Constructor(构造方法) -> @Autowired(依赖注入) -> @PostConstruct(注释的方法) 那么PostConstruct可以注释到init()方法上了 https://blog.csdn.net/qq360694660/article/details/82877222