摘要: 1.使用@Value +@RefreshScope 2.使用@RefreshScope​​ + ​​@ConfigurationProperties @Data @Component ​@RefreshScope @ConfigurationProperties(prefix ="pattern") 阅读全文
posted @ 2022-10-31 11:40 流浪的外星人 阅读(129) 评论(0) 推荐(0)
摘要: 1.引入依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <depende 阅读全文
posted @ 2022-03-18 17:30 流浪的外星人 阅读(133) 评论(0) 推荐(0)