6
我使用Spring 4.1.6.RELEASE和Spring Boot 1.2.3.RELEASE。 现在,我无法顺利地从Neo4j 2.1.7和SDN 3.2.2.RELEASE迁移到Neo4j 2.2.0和SDN 3.3.0.RELEASE不能移动到Neo4j 2.2.0和Spring Data Neo4j 3.3.0.RELEASE
首先,Neo4jHelper
类缺失... so应该用什么来代替?
而且,我的测试中崩溃了下列情况除外:
org.springframework.dao.InvalidDataAccessApiUsageException: nested exception is org.neo4j.graphdb.NotInTransactionException
at org.springframework.data.neo4j.support.Neo4jExceptionTranslator.translateExceptionIfPossible(Neo4jExceptionTranslator.java:51)
at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)
at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
,但在以前的版本中的一切工作正常(我的DAO和服务都标注有@Transactional
)。
如何在我的Spring Boot应用程序中为Neo4j配置合适的TX管理器?
眼下NullTransactionManager
使用,我认为这是问题的一个原因:
2015-04-03 11:40:36 [main] INFO o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.spring[email protected]12db5286: startup date [Fri Apr 03 11:40:36 EEST 2015]; root of context hierarchy
2015-04-03 11:40:37 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2015-04-03 11:40:38 [main] INFO o.s.t.jta.JtaTransactionManager - Using JTA UserTransaction: [email protected]7c2
2015-04-03 11:40:38 [main] INFO o.s.t.jta.JtaTransactionManager - Using JTA TransactionManager: [email protected]c4d92
什么,我做错了什么?
谢谢,等待消息 – alexanoid 2015-04-03 10:48:24
什么是最好的方式来保持警觉/找出Spring Data/Spring Data Neo4j和Neo4j之间互操作性的当前状态?是否有一个规范的“状态”页面显示最近的工作组合? – 2015-04-07 08:08:29
这个任何词? – BtySgtMajor 2015-04-18 00:33:40