java.lang.NoClassDefFoundError: org/springframework/core/env/ConfigurableEnvironment

后端 未结 7 1503
孤独总比滥情好
孤独总比滥情好 2020-11-27 08:03

I am trying to write a simple RESTful service using Spring Boot. However, there is an error message I am not able to solve. I have been researching and it looks like it is a

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 08:35

    Spring boot is running -

    4.3.2.RELEASE
    

    For -

        
            org.springframework.boot
            spring-boot-starter-web
            1.4.0.RELEASE
        
    

    While you are importing -

        4.3.0.RELEASE
    

    You can confirm on the master pom -

    https://github.com/spring-projects/spring-boot/blob/v1.4.0.RELEASE/spring-boot-dependencies/pom.xml

    Can you update the spring version in your pom? Or deal with managing maven dependencies

提交回复
热议问题