参考:https://www.cnblogs.com/jiangwz/p/9711998.html
上面链接说的很清楚了,区别就是最后异缺少的类不一致,我的是Type org.springframework.cloud.context.scope.refresh.RefreshScope not presen。然后我引入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
依赖解决了此问题,重点是博客中的查找方法。
博客中提到的问题是Spring Cloud应用在运行时缺少RefreshScope类导致的问题。通过引入spring-boot-starter-actuator依赖,可以成功解决这个问题。关键步骤在于正确识别问题并参照博客中的方法进行排查和修复。


被折叠的 条评论
为什么被折叠?



