java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.clearCache()

后端 未结 2 1834
误落风尘
误落风尘 2021-01-11 11:35

I faced with a problem, was google it for a half of this day. Nothing could help me. It was working. But after that something has happened and i didn\'t capture that.

<
相关标签:
2条回答
  • 2021-01-11 12:09

    Well, java.lang.NoSuchMethodError means - incompatible versions in pom.xml

    Fix. pom.xml:

    <properties>
        <spring-core.version>4.1.6.RELEASE</spring-core.version>
        <javax.servlet-api.version>3.1.0</javax.servlet-api.version>
        <spring-data-jpa.version>1.9.2.RELEASE</spring-data-jpa.version>
        <hibernate-entitymanager.version>5.0.7.Final</hibernate-entitymanager.version>
        <mysql-connector-java.version>5.1.34</mysql-connector-java.version>
        <commons-dbcp2.version>2.1.1</commons-dbcp2.version>
        <jta.version>1.1</jta.version>
        <!--<postgresql.version>9.1-901-1.jdbc4</postgresql.version>-->
        <junit.version>4.11</junit.version>
        <spring-webmvc.version>4.1.6.RELEASE</spring-webmvc.version>
        <spring-test.version>4.1.6.RELEASE</spring-test.version>
        <jstl.version>1.2</jstl.version>
    </properties>
    
    0 讨论(0)
  • 2021-01-11 12:09

    I also suffered from this problem. But,When I changed version of spring and JDK Version then this problem was solved. So,it may to work out for you

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