摘要: 实现CommandLineRunner接口;容器启动之后,加载实现类的逻辑资源,已达到完成资源初始化的任务; @PostConstruct;在具体Bean的实例化过程中执行,@PostConstruct注解的方法,会在构造方法之后执行; @Componentpublic class TestRun 阅读全文
posted @ 2022-07-20 07:34 动力起点 阅读(218) 评论(0) 推荐(0) 编辑