具體報錯: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正常