spring boot 升级出现异常

org.springframework.boot.context.config.ConfigFileApplicationListener does not define
java.lang.AbstractMethodError: Receiver class org.springframework.boot.context.config.ConfigFileApplicationListener does not define

如果在spring boot升级引发以上异常,则需要查看在pom.xml中是否使用了spring-boot-starter-parent和dependencyManagement,需要使用,则需要注意两者间的版本问题。如果不知如何处理。则可以删除注释掉dependencyManagement节点。

<!-- <dependencyManagement>
        <dependencies>
            <dependency>
                Import dependency management from Spring Boot
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>x.x.x.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement> -->