Mit Spring 4.0, spring-data-jpa

Bin ich mit Spring 4.0 in meiner Java ee Anwendung, und ich habe versucht, die Spring-data-jpa.

Jedoch, wenn ich die Spring-data-jpa-Abhängigkeit, ich fand, dass die Spring-data-jpa wird davon abhängen, Frühling-3.x.

Dann Frage ich mich, wird diese Probleme? Da meine Anwendung wird Frühling-4.x mit Feder-3.x.

Jemand die gleichen Erfahrungen?


Update:

Bin ich mit Spring-data-jpg-1.4.3:

    <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-jpa</artifactId>
        <version>1.4.3.RELEASE</version>
    </dependency>

Aber wenn ich mvn dependency:tree ich habe diese:

+- org.springframework:spring-context:jar:4.0.0.RELEASE:compile
|  +- org.springframework:spring-beans:jar:4.0.0.RELEASE:compile
|  +- org.springframework:spring-core:jar:4.0.0.RELEASE:compile
|  |  \- commons-logging:commons-logging:jar:1.1.1:compile
|  \- org.springframework:spring-expression:jar:4.0.0.RELEASE:compile
+- org.springframework:spring-aop:jar:4.0.0.RELEASE:compile
|  \- aopalliance:aopalliance:jar:1.0:compile
+- org.springframework.data:spring-data-jpa:jar:1.4.3.RELEASE:compile
|  +- org.springframework.data:spring-data-commons:jar:1.6.3.RELEASE:compile
|  +- org.springframework:spring-orm:jar:3.1.4.RELEASE:compile
|  |  \- org.springframework:spring-jdbc:jar:3.1.4.RELEASE:compile
|  +- org.springframework:spring-tx:jar:3.1.4.RELEASE:compile
|  +- org.aspectj:aspectjrt:jar:1.7.2:compile
|  +- org.slf4j:slf4j-api:jar:1.7.1:compile
|  \- org.slf4j:jcl-over-slf4j:jar:1.7.1:runtime
+- org.aspectj:aspectjweaver:jar:1.7.4:compile
+- org.springframework:spring-test:jar:4.0.0.RELEASE:test

Es scheint, dass der Frühling 4.0.. gemischt mit Feder 3.1.4..

  • Mischen Sie niemals Frühjahr Versionen, die Probleme warten zu passieren. Der Frühling Daten 1.4.x-Zweig sollte funktionieren mit Feder 4.
  • Ich update meinen post.
InformationsquelleAutor hguser | 2014-02-12
Schreibe einen Kommentar