@RefreshScope 在Controller层无效解决方案之Springboot版本2.3.4
SpringBoot版本:
SpringBoot 版本2.3.4
问题描述:
常用方式 在Controller层加上@RefreshScope注解后请求http://localhost:8089actuator/refresh(**Post**)后服务拉取,但刷新接口后页面获取不到更新后的配置
@RestController
@RequestMapping("/test")
@RefreshScope
public class TestController {
private Logger
原创
2020-10-20 09:42:21 ·
3803 阅读 ·
5 评论