java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableListableBeanFactor

java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableListableBeanFactory.getApplicationStartup()Lorg/springframework/core/metrics/ApplicationStartup;

问题原因:检查spring-core版本与spring-jdbc版本是否一致,同理如果是其他包检查版本是否一致
错误:

 <dependency>
            <groupId>org.springframeworkgroupId>
            <artifactId>spring-jdbcartifactId>
            <version>5.2.10.RELEASEversion>
        dependency>
        <dependency>
            <groupId>org.springframeworkgroupId>
            <artifactId>spring-coreartifactId>
            <version>5.3.13version>
        dependency>
        ```
        
       修改后:
       ```xml
       
        <dependency>
            <groupId>org.springframeworkgroupId>
            <artifactId>spring-jdbcartifactId>
            <version>5.3.13version>
        dependency>
         <dependency>
            <groupId>org.springframeworkgroupId>
            <artifactId>spring-coreartifactId>
            <version>5.3.13version>
        dependency>

记得刷新pom
在这里插入图片描述

你可能感兴趣的:(java,spring,intellij-idea)