Correct the classpath of your application so that it contains a single, compatible version of com.go

错误:

2019-10-11 10:58:25.896  INFO 24488 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-10-11 10:58:25.903 ERROR 24488 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
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:

    java.lang.invoke.MethodHandleNatives.resolve(Native Method)

The following method did not exist:

    com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder;

The method's class, com.google.gson.GsonBuilder, is available from the following locations:

    jar:file:/D:/java_software/maven_repository/com/google/code/gson/gson/2.1/gson-2.1.jar!/com/google/gson/GsonBuilder.class

It was loaded from the following location:

    file:/D:/java_software/maven_repository/com/google/code/gson/gson/2.1/gson-2.1.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of com.google.gson.GsonBuilder

原因:这是因为springcloud启动的时候加载jar包加载到了低版本的jar包,然后引起了版本冲突。

解决办法:复制jar包地址找到版本低的jar包,直接删除,然后重启。
Correct the classpath of your application so that it contains a single, compatible version of com.go_第1张图片
删除之后重启:
Correct the classpath of your application so that it contains a single, compatible version of com.go_第2张图片
访问注册中心:
Correct the classpath of your application so that it contains a single, compatible version of com.go_第3张图片

你可能感兴趣的:(bug日记本)