首页 > 其他分享 >The following method did not exist: com.google.gson.GsonBuilder.setLenient()

The following method did not exist: com.google.gson.GsonBuilder.setLenient()

时间:2022-09-07 14:56:02浏览次数:55  
标签:google did exist GsonBuilder setLenient com gson

报错完整信息

 

 

原因:因为引入的jar包版本不对, 里面没有com.google.gson.GsonBuilder.setLenient() 这个方法。

解决方案:

1、引入版本对应的jar包

2、排除springBoot中的GsonAutoConfiguration类

@SpringBootApplication(exclude = {GsonAutoConfiguration.class})

 

标签:google,did,exist,GsonBuilder,setLenient,com,gson
From: https://www.cnblogs.com/qq1445496485/p/16665419.html

相关文章