国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

啟動springboot時報錯 APPLICATION FAILED TO START 包沖突

這篇具有很好參考價值的文章主要介紹了啟動springboot時報錯 APPLICATION FAILED TO START 包沖突。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

啟動springboot時報錯 APPLICATION FAILED TO START 包沖突

problem

具體日志如下

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

    org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.registerWellKnownModulesIfAvailable(Jackson2ObjectMapperBuilder.java:823)

The following method did not exist:

    com.fasterxml.jackson.databind.Module.getTypeId()Ljava/lang/Object;

The calling method's class, org.springframework.http.converter.json.Jackson2ObjectMapperBuilder, was loaded from the following location:

    jar:file:/Users/dream/.m2/repository/org/springframework/spring-web/5.3.13/spring-web-5.3.13.jar!/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.class

The called method's class, com.fasterxml.jackson.databind.Module, is available from the following locations:

    jar:file:/Users/dream/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.3.3/jackson-databind-2.3.3.jar!/com/fasterxml/jackson/databind/Module.class

The called method's class hierarchy was loaded from the following locations:

    com.fasterxml.jackson.databind.Module: file:/Users/dream/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.3.3/jackson-databind-2.3.3.jar


Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.http.converter.json.Jackson2ObjectMapperBuilder and com.fasterxml.jackson.databind.Module


Process finished with exit code 1

reason

報錯日志的意思

  • com.fasterxml.jackson.databind.Module.getTypeId 這個方法不存在
  • 此方法對應(yīng)的一個類 json.Jackson2ObjectMapperBuilder 來自 spring-web-5.3.13.jar 包
  • 此方法對應(yīng)的另一個類 jackson.databind.Module 來自 jackson-databind-2.3.3.jar

觀察maven依賴

  • 正常項目的依賴是 spring-web-5.3.13.jar 和 jackson-databind-2.13.0.jar
  • 異常項目的依賴是 spring-web-5.3.13.jar 和 jackson-databind-2.3.3.jar
  • 可以看到是 第二個包的版本低了,導(dǎo)致出現(xiàn)了包沖突

對比pom文件

  • 對比正常和異常項目,發(fā)現(xiàn)正常項目 springboot 依賴是來自parent節(jié)點
  • 異常項目 springboot 依賴是pom中 自定義

啟動springboot時報錯 APPLICATION FAILED TO START 包沖突,pits,spring boot,后端,java

solution

采用parent方式引入springboot可以解決問題

啟動springboot時報錯 APPLICATION FAILED TO START 包沖突,pits,spring boot,后端,java文章來源地址http://www.zghlxwxcb.cn/news/detail-774989.html

到了這里,關(guān)于啟動springboot時報錯 APPLICATION FAILED TO START 包沖突的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • This application failed to start because no Qt platform plugin could be initialized報錯

    This application failed to start because no Qt platform plugin could be initialized報錯

    開機后電腦一直跳出這個頁面,每隔幾分鐘就跳出,影響電腦的使用。 由于本機近幾天并未下載軟件、移動文件位置等操作,只有下載安裝Anaconda,于是我將這個原因歸結(jié)于Anaconda安裝上。為了學習opencv我下載了opencv-python的主模塊包和PyQt5。 由于我經(jīng)驗不足,學習了在CSDN上大

    2024年02月02日
    瀏覽(43)
  • 問題:This application failed to start because no Qt platform plugin could be initialized. Reinstalling

    問題:This application failed to start because no Qt platform plugin could be initialized. Reinstalling

    例如: 從\\\"C:UsersAdministratorAppDataLocalProgramsPythonPython311Libsite-packages\\\"把“PyQt5”文件夾、“pyqt5_plugins”文件夾復(fù)制到\\\"C:UsersAdministratorAppDataLocalProgramsPythonPython311Lib\\\"下。

    2024年02月11日
    瀏覽(19)
  • 解決QT This application failed to start because no Qt platform plugin could be initialized. 問題

    解決QT This application failed to start because no Qt platform plugin could be initialized. 問題

    This application failed to start because no Qt platform plugin could beinitialized. Reinstalling the application may fix this problem. 遇到了這個問題,卡了蠻久的,也在網(wǎng)上找了很多方法,終于解決了!下面是我自己解決這個問題的過程,希望能夠有參考價值,也是對自己解決這一過程的一點記錄: 方法

    2024年01月16日
    瀏覽(21)
  • this application failed to start because no qt platform plugin could be initialized reinstalling the

    this application failed to start because no qt platform plugin could be initialized reinstalling the

    通過chat-GPT檢索可以得到 這個錯誤通常是由于缺少Q(mào)t平臺插件導(dǎo)致的。要解決這個問題,可以嘗試以下方法: 1. 確保你已經(jīng)正確安裝了Qt平臺插件。如果你使用的是conda或pip安裝的Python,可以嘗試重新安裝PyQt或PySide。 2. 如果重新安裝PyQt或PySide后仍然無法啟動應(yīng)用程序,你可以

    2024年02月15日
    瀏覽(24)
  • Zookeeper啟動失?。篎AILED TO START解決方案

    Zookeeper啟動失?。篎AILED TO START解決方案

    ?如圖,啟動zookeeper失敗,輸入 查看失敗原因 ?Invalid config,我得知是配置文件出了問題,但是檢查配置文件沒有發(fā)現(xiàn)錯誤 最終在配置文件末尾配置參數(shù)結(jié)尾發(fā)現(xiàn)了未刪除的空格 ?將三個節(jié)點配置文件中的空格刪去之后,zookeeper均能正常運行 至此問題解決,投身下一個問題中

    2024年02月12日
    瀏覽(22)
  • 解決使用PyQt5出現(xiàn)錯誤This application failed to start because no Qt platform plugin could be initialized

    解決使用PyQt5出現(xiàn)錯誤This application failed to start because no Qt platform plugin could be initialized

    目錄 背景介紹: 解決思路: 版本問題: 檢查版本:首先要確定安裝版本問題。確定你安裝的PyQt5版本支持你下載的python的版本。 降python版本: 下載PyQt5 plugins缺少dll文件問題 環(huán)境變量問題 我這個學期開始上圖形學,寫上機作業(yè)第一次用到PyQt5寫GUI,寫了簡單的代碼測試工具

    2024年02月11日
    瀏覽(22)
  • zookeeper啟動時Starting zookeeper ... FAILED TO START問題處理

    zookeeper啟動時Starting zookeeper ... FAILED TO START問題處理

    Linux服務(wù)器中啟動zookeeper服務(wù)時,出現(xiàn) Starting zookeeper ... FAILED TO START 錯誤 通過分析zookeeper啟動日志發(fā)現(xiàn) 啟動zookeeper失敗提示8080端口被占用,這是zookeeper3.5的特性 Zookeeper AdminServer,默認使用8080端口 修改zoo.cfg文件的配置,添加如下配置 修改后再次啟動zookeeper,查看啟動日志

    2024年02月06日
    瀏覽(29)
  • 解決mysql啟動時的Failed to start LSB: start and stop MySQL問題

    解決mysql啟動時的Failed to start LSB: start and stop MySQL問題

    前言: 在下載glibc版本的Mysql時,啟動mysql服務(wù)時出現(xiàn)了如下錯誤 網(wǎng)上搜了許多種方法:查看錯誤日志,或者df -h查看磁盤是否已滿等都未解決,后來嘗試了重新對數(shù)據(jù)庫進行初始化后才解決了該問題. ?數(shù)據(jù)庫初始化: 在對數(shù)據(jù)庫重新進行初始化之前,需要事先刪除 /usr/loc

    2024年02月07日
    瀏覽(24)
  • SSH無法啟動錯誤解決:Failed to start OpenSSH server daemon.

    廢話不說,先把方案直接貼出來趕緊試試: 直接執(zhí)行一下的三個命令 這個問題是因為自己在玩的時候一不小心把var目錄的權(quán)限給改了,導(dǎo)致如此。害我緊張的排查了好一會,大意了大意了。。。

    2024年02月11日
    瀏覽(33)
  • VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start

    VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start

    電腦關(guān)機打開后,使用VSCode連接服務(wù)器,在輸入完密碼之后右下角一直沒有加載完畢,一直報: 無法安裝VS Code服務(wù)器 Windows終端可以ssh到服務(wù)器上;VSCode連接時報錯,之前連接過。 前期準備 :在做后邊的操作之前一定要記得 關(guān)閉遠程 ,報錯的時候會彈出彈窗或者按 ESC ,選

    2024年02月05日
    瀏覽(24)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包