Exception in thread "main" java.lang.AbstractMethodError(Spring boot啓動報錯)

具體報錯:Exception in thread "main" java.lang.AbstractMethodError: org.springframework.boot.context.config.ConfigFileApplicationListener.supportsSourceType(Ljava/lang/Class;)Z

原因:

在pom.xml文件中

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.4.RELEASE</version> <!-- 2.1.5 -->
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
版本衝突,將2.1.5換成2.0.4解決問題

項目本身爲2.1.3.RELEASE

更換1.5.9RELEASE版本正常

目前不知何原因,都說的jar版本衝突,

佈置過兩個一樣的版本,第一個2.1.3RELEASE無異常,第二個出問題還1.5.9.RELEASE正常
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章