Jason Song

Results 317 comments of Jason Song

You could refresh the specific bean with the bean name, e.g. https://github.com/apolloconfig/apollo/blob/96ee53a2c98da763ef0e7557af33c03a8d2ae297/apollo-demo/src/main/java/com/ctrip/framework/apollo/demo/spring/springBootDemo/refresh/SpringBootApolloRefreshConfig.java#L47-L53

BTW, I verified EnvironmentChangeEvent also works in spring boot 2.4.12 and spring cloud 2020.0.4. If it doesn't work for your scenario, please take a look at your ConfigurationProperties setup and...

>恩,是我只写取application错误了,请问@RefreshScope 会导致服务重启的问题您遇过吗? @Sam0913 You need to refresh a specific bean instead of refresh all. But I think even refresh all will only trigger eureka to unregister and register itself but...

没有错啊,一个是spring-boot-logger,一个是spring-cloud-logger

Good suggestion! Perhaps we need to also design an open api standard, e.g. authentication/authorization, etc.

Would you please help to describe some potential use cases?