午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

您的位置:首頁技術(shù)文章
文章詳情頁

Springboot整合Gson報(bào)錯(cuò)問題解決過程

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

在Springboot 中依賴Gson,項(xiàng)目啟動(dòng)時(shí)報(bào)錯(cuò):

***************************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>

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持好吧啦網(wǎng)。

標(biāo)簽: Spring
相關(guān)文章:
主站蜘蛛池模板: 国产精品欧美亚洲 | 少妇一级淫片免费播放 | 色婷婷国产精品久久包臀 | 久热精品在线视频 | av在线大全 | 久久免费视频观看 | 亚洲a视频在线观看 | 日本欧美一区二区三区 | 日本一区二区三区中文字幕 | 免费视频中文字幕 | www.国产在线观看 | 玖玖在线视频 | 中文无码日韩欧 | 亚洲精品日韩精品 | 久久密av| 亚洲人成人一区二区在线观看 | 亚洲国产成人在线视频 | 亚洲精品在线免费 | 色在线免费观看 | 香蕉视频免费在线播放 | 播播网色播播 | 欧美黄色aaa | 中文字幕在线观看网站 | 欧美日韩亚洲色图 | 国产一在线 | 成人亚洲国产 | 黄色在线观看免费 | 麻豆成人91精品二区三区 | 四虎成人免费影院 | 少妇超碰 | www天堂在线 | 麻豆久久久久 | 欧洲精品一区二区三区 | 欧美激情 亚洲 | 中文激情网 | 日本少妇在线观看 | av一区不卡 | 中文字幕亚洲精品在线 | 久久成年视频 | 99热只有这里有精品 | 日本中文字幕在线播放 |