摘要:
重新加载配置文件: java -jar spring-boot-02-config-02-0.0.1-SNAPSHOT.jar --spring.config.additional-location=E:/application.properties 注意=后面不能有空格,否则配置文件会加载不了 阅读全文
posted @ 2021-05-08 12:02
__先森
阅读(134)
评论(0)
推荐(0)
摘要:
###SpringBoot配置容器加载完毕后自动运行指定方法 #####一、编写Applistener @Component public class AppListener implements ApplicationListener<ContextRefreshedEvent> { @Suppr 阅读全文
posted @ 2021-05-08 11:55
__先森
阅读(707)
评论(0)
推荐(0)

浙公网安备 33010602011771号