目录一、静态代码块二、构造方法三、@PostConstruct四、InitializingBean 接口五、 @Bean 注解中的 initMethod六、 CommandLineRunner 接口七、ApplicationRunner 接口八、@EventListener事件九、SmartInitializingS
目录导语一、为什么需要启动后自动执行方法二、六大实现方案全解析方案 1:@PostConstruct(简单初始化)方案 2:ApplicationRunner(参数解析增强)方案 3:ApplicationListener方案 4:CommandLineRunner(基础
人类时尚代言人 2022-03-18 20:08 开发者_Go百科神仙老师狗