После запуска сервлетов я получил эту ошибку.я использовал gson 2.8.2, но все равно получаю ту же ошибку.
Как запустить приложение сервлета с gson 2.8.2?
MyError:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-04-12 11:04:20.647 ERROR 6780 --- [ost-startStop-1] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call the method com.google.gson.GsonBuilder.enableComplexMapKeySerialization()Lcom/google/gson/GsonBuilder; but it does not exist. Its class, com.google.gson.GsonBuilder, is available from the following locations:
jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/lib/wsc-22%20(1).jar!/com/google/gson/GsonBuilder.class
It was loaded from the following location:
file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/lib/wsc-22%20(1).jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of com.google.gson.GsonBuilder
Может любойпомогите мне, как выйти из этой ошибки. Заранее спасибо.