Setting up spring app with spring data repositories and mongo db

前端 未结 5 901
孤街浪徒
孤街浪徒 2021-01-06 04:09

I am facing an issue when defining mongo repository in application-context.xml

Following is the error i get in xml

Error occured process

5条回答
  •  执念已碎
    2021-01-06 04:32

    Make sure you don't accidentally pull in an older Spring version (something before 3.2.5) into the classpath. The older methods don't have the method listed in the exception public. This is then causing the exception. I recommend to use the following Maven config snippet to enforce all Spring libraries to be in 4.0.2:

    
      
        
          org.springframework
          spring-framework-bom
          4.0.2.RELEASE
          pom
          import
        
      
    
    

提交回复
热议问题