原文:SpringBoot 引入第三方包之后 报错 java.lang.NoSuchMethodError: com.google.gson.GsonBuilder.setLenient()

背景 在使用powerjob时引入第三方jar包 odps 后SpringBoot启动报错 解决方法 The following method did not exist: com.google.gson.GsonBuilder.setLenient Lcom google gson GsonBuilder ...

2021-03-12 16:31 0 591 推荐指数:

查看详情

An attempt was made to call the method com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder; but it does not exist. Its class

提升了版本2.7,2.8.2,但是均没有解决版本冲突的问题,最后发现,是我之前手动添加过gson.jar。删除即可。比较常规,但是由于用maven管理jar,在pom.xml中找不到冲突的jar所以在这里记录一下,提个醒。下面是先删除本地jar之后的现象,再删除这些就可以了 ...

Thu Jan 10 18:30:00 CST 2019 2 7278
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM