Closed xiaohaiGit closed 1 week ago
Describe the bug 使用最新的nacos-config-spring-boot-starter:0.3.0-RC , 报错 <org.yaml.snakeyaml.constructor.SafeConstructor: method 'void ()' not found ,发现原因是与依赖的底层的snakeyaml 接口SafeConstructor 不兼容,在snakeyaml 2.0 版本后,SafeConstructor 没有无参构造了。但是在nacos 中,依然使用SafeConstructor的无参构造。导致报错
Expected behavior org.yaml.snakeyaml.constructor.SafeConstructor: method 'void ()' not found
Actually behavior org.yaml.snakeyaml.constructor.SafeConstructor: method 'void ()' not found
How to Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
这个问题是出在使用springboot 3.2.0 + 的版本出现了。试了下3.1 版本的,没有这个问题。这说明, 现在的nacos springboot 版本,没有兼容最新的springboot
duplicate with #12076。
welcome submit pr to fix it.
Describe the bug 使用最新的nacos-config-spring-boot-starter:0.3.0-RC , 报错 <org.yaml.snakeyaml.constructor.SafeConstructor: method 'void()' not found ,发现原因是与依赖的底层的snakeyaml 接口SafeConstructor 不兼容,在snakeyaml 2.0 版本后,SafeConstructor 没有无参构造了。但是在nacos 中,依然使用SafeConstructor的无参构造。导致报错
Expected behavior org.yaml.snakeyaml.constructor.SafeConstructor: method 'void()' not found
Actually behavior org.yaml.snakeyaml.constructor.SafeConstructor: method 'void()' not found
How to Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context Add any other context about the problem here.