背景
springboot2.2.x 升级到是springboot2.7.x,apollo-client也跟着升级到了2.0.1,配置中心使用.properties的应用启动正常,
使用.yml报了上面的错误
解决方案
- 版本降级到1.33解决
下面是ai回答的结果
让我们尝试几个可能的解决方案:
- 检查你的 Spring Boot 版本和 SnakeYAML 版本是否匹配。对于 Spring Boot 3.x,建议使用:
<!-- Spring Boot 3.x -->
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>2.2</version>
</dependency>
<!-- Spring Boot 2.x -->
<dependency>

最低0.47元/天 解锁文章
1128

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



