1.通过@Value 和@RefreshScope实现动态刷新
2.将动态刷新的值放到自定义配置文件中,通过@ConfigurationProperties(prefix="user")和@EnableConfigurationProperties({UserProperties.class})实现动态刷新

相关文章:

  • 2021-12-01
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2021-08-06
  • 2021-06-09
  • 2022-01-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-08-20
  • 2023-01-14
  • 2022-03-04
  • 2021-06-24
相关资源
相似解决方案