av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

您的位置:首頁技術文章
文章詳情頁

Springboot整合Gson報錯問題解決過程

瀏覽:5日期:2023-05-14 14:12:26

在Springboot 中依賴Gson,項目啟動時報錯:

***************************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:/8_maven/mvnrepo/com/google/code/gson/gson/2.5/gson-2.5.jar!/com/google/gson/GsonBuilder.classIt was loaded from the following location: file:/D:/8_maven/mvnrepo/com/google/code/gson/gson/2.5/gson-2.5.jarAction:Correct the classpath of your application so that it contains a single, compatible version of com.google.gson.GsonBuilder

解決辦法:

將pom中依賴的Gson版本更換為2.6以上即可

<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --><dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.6</version></dependency>

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持好吧啦網。

標簽: Spring
相關文章:
主站蜘蛛池模板: 色综合久久88色综合天天 | 国产激情一区二区三区 | 久草小视频 | 九九免费视频 | 欧美日韩国产二区 | 久久久久一区二区 | 动漫av在线 | 日韩视频免费大全中文字幕 | 水蜜桃一区二区 | 黄视频网站在线观看 | 日韩在线播放视频 | 亚洲欧美综合网 | 亚洲精品不卡 | 欧美顶级黄色大片免费 | 综合网av | 欧美一级淫片免费视频黄 | 在线播放亚洲 | 亚洲免费在线 | 亚洲综合第一页 | 国产又色又爽又黄又免费 | 深夜福利网站 | 久久久久婷婷 | 亚洲欧美日韩一区二区三区四区 | www.色中色 | 在线视频a | 午夜精品国产精品大乳美女 | 欧美三级又粗又硬 | 日韩在线免费视频 | 国产亚洲欧美在线 | 亚洲色在线视频 | 国产午夜免费视频 | 亚洲精品久久 | 一区二区三区成人 | 欧美日韩国产在线播放 | 中文字幕在线免费 | 日本黄色录像 | 久久九九精品 | 欧美不卡在线 | 国产精品亚洲综合 | 免费黄色在线 | 五月婷婷综合网 |