Correct the classpath of your application so that it contains a single, compatible version of org.springframework.util.Assert

 

 

今天启动springboot工程时,报上面的错误。

二、解决方法

加入如下pom:

     <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>5.0.6.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>5.0.6.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <version>5.0.6.RELEASE</version>
        </dependency>

也就是将spring-context、spring-core、spring-beans由4.3.22升级为5.0.6,问题解决。

 

相关文章:

  • 2022-12-23
  • 2021-12-01
  • 2021-04-02
  • 2021-10-14
  • 2021-05-01
  • 2022-12-23
  • 2021-11-26
  • 2022-01-22
猜你喜欢
  • 2021-08-07
  • 2021-07-13
  • 2021-08-05
  • 2022-12-23
  • 2021-09-28
  • 2021-07-04
  • 2022-12-23
相关资源
相似解决方案