标签: spring spring-boot spring-cloud spring-cloud-config
我们正在通过更新application-env.yml文件中的日志级别来寻找运行时日志级别的变化。我们不允许在更高的环境中使用任何端点/ URL,因此我们不能利用spring促动器提供的功能来更改运行时的日志级别。 我们认为应该有一些可以与Spring Cloud的@RefreshScope结合使用的东西,它可以使我们只对property / yml文件进行更改,并将其反映在运行时上。
application-env.yml
@RefreshScope