Can't use spring-modules-validation with spring 3

前端 未结 1 861
甜味超标
甜味超标 2021-01-05 02:51

i have following pom file:




        
相关标签:
1条回答
  • 2021-01-05 03:36

    Apparently you are experiencing the JAR hell issue. Change your dependency in pom.xml to:

    <dependency>
        <groupId>org.springmodules</groupId>
        <artifactId>spring-modules-validation</artifactId>
        <version>0.8</version>
        <exclusions>
            <exclusion>
                <groupId>org.springframework</groupId>
                <artifactId>spring</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.springframework</groupId>
                <artifactId>spring-mock</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    

    If it does not help, try running:

    $ mvn dependency:tree
    

    This will help you to find duplicated or overlapping JARs - then you can exclude them using the technique above.

    0 讨论(0)
提交回复
热议问题