Setting up spring app with spring data repositories and mongo db

前端 未结 5 891
孤街浪徒
孤街浪徒 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:56

    I ran into the same issue. After spending several hours fighting with the problem @Avnish's answer pointed me in the right direction. More specifically, the issue he opened at https://jira.springsource.org/browse/DATAJPA-490 really cleared things up.

    Spring-Data-JPA 1.5.1.BUILD-SNAPSHOT or 1.6.0.BUILD-SNAPSHOT has a guard that indicates exactly which jar is causing the problem.

    In my case, I was using Eclipse Juno (4.2) with Spring IDE 3.4.0 which was causing the problem. I had to upgrade to Spring IDE 3.5.0 to make the issue go away. I had to use the http://dist.springsource.com/snapshot/TOOLS/nightly/e4.2 update site to update Juno to Spring IDE 3.5.0.

    It also appears that STS 3.5.0RC1 and beyond get this working as well.

提交回复
热议问题