今天碰到一个坑,当在配置中心删除配置后,内存里的配置不刷新。原因是要在@ConfigurationProperties注解的类上加上@RefreshScope注解;同时,不能使用@EnableConfigurationProperties注解初始化配置类,而要用@Component。

原文地址:https://github.com/spring-cloud/spring-cloud-config/issues/290
spring cloud动态配置的坑

相关文章:

  • 2021-10-28
  • 2021-08-22
  • 2021-06-05
  • 2022-12-23
  • 2021-11-06
  • 2021-10-31
  • 2021-07-17
  • 2021-07-03
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2021-08-10
  • 2021-06-19
  • 2021-06-04
  • 2021-08-21
  • 2022-12-23
相关资源
相似解决方案