Spring Boot 2.7.5 shardingsphere-jdbc 5.2.1 报错

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    org.apache.shardingsphere.infra.util.yaml.constructor.ShardingSphereYamlConstructor$1.(ShardingSphereYamlConstructor.java:44)

The following method did not exist:

    'void org.apache.shardingsphere.infra.util.yaml.constructor.ShardingSphereYamlConstructor$1.setCodePointLimit(int)'

The calling method's class, org.apache.shardingsphere.infra.util.yaml.constructor.ShardingSphereYamlConstructor$1, was loaded from the following location:

    jar:file:/Users/lptnyy/.gradle/caches/modules-2/files-2.1/org.apache.shardingsphere/shardingsphere-infra-util/5.2.1/3d2162c2fb79cd4ffe578bb7cff030ad3fc57312/shardingsphere-infra-util-5.2.1.jar!/org/apache/shardingsphere/infra/util/yaml/constructor/ShardingSphereYamlConstructor$1.class

The called method's class, org.apache.shardingsphere.infra.util.yaml.constructor.ShardingSphereYamlConstructor$1, is available from the following locations:

    jar:file:/Users/lptnyy/.gradle/caches/modules-2/files-2.1/org.apache.shardingsphere/shardingsphere-infra-util/5.2.1/3d2162c2fb79cd4ffe578bb7cff030ad3fc57312/shardingsphere-infra-util-5.2.1.jar!/org/apache/shardingsphere/infra/util/yaml/constructor/ShardingSphereYamlConstructor$1.class

The called method's class hierarchy was loaded from the following locations:

    null: file:/Users/lptnyy/.gradle/caches/modules-2/files-2.1/org.apache.shardingsphere/shardingsphere-infra-util/5.2.1/3d2162c2fb79cd4ffe578bb7cff030ad3fc57312/shardingsphere-infra-util-5.2.1.jar
    org.yaml.snakeyaml.LoaderOptions: file:/Users/lptnyy/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.30/8fde7fe2586328ac3c68db92045e1c8759125000/snakeyaml-1.30.jar


Action:

解决方式,只需要改shardingsphere版本号5.2.0 就可以解决,如果还解决不了尝试降低版本号,或者升高版本号

你可能感兴趣的:(spring,cloud,架构,java,spring,boot,后端)