spring boot upgrade from 1.4 to 2.0.5 pit encountered

Original link: https://blog.csdn.net/qq_37455027/article/details/83028107

https://blog.csdn.net/michaelgo/article/details/80825917
1、com.google.code.gson错误
An attempt was made to call the method com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder; but it does not exist. Its class, com.google.gson.GsonBuilder, is available from the following locations:

jar:file:/D:/maven/com/google/code/gson/gson/2.3.1/gson-2.3.1.jar!/com/google/gson/GsonBuilder.class

It was loaded from the following location:

file:/D:/maven/com/google/code/gson/gson/2.3.1/gson-2.3.1.jar

Version of the problem: the advanced version of the jar package rose a little. I am here to upgrade to 2.8.2
2, cxf-spring-boot- starter-jaxws error
error contents:

Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
To solve the problem:
the previous version 3.1.11
version 3.2.5 update changed

Guess you like

Origin blog.csdn.net/qq_42859864/article/details/102454124