摘要: @Component public class SpringContext implements ApplicationContextAware { // Spring应用上下文环境 private static ApplicationContext applicationContext; /** 阅读全文
posted @ 2020-04-08 10:16 Draymond 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 作用: spring所有Bean生成之后,加载一些数据和执行一些应用的初始化 使用 @Order(value = 1) // 多个实现时定义执行顺序 @Component public class ApplicationInit implements CommandLineRunner, Appli 阅读全文
posted @ 2020-04-08 09:54 Draymond 阅读(1028) 评论(0) 推荐(0) 编辑