你可以启用 allowCustomIsolationLevels 通过
allowCustomIsolationLevels
@Configuration ... public class MyNeo4jConfig extends Neo4jConfiguration { ... @Override public PlatformTransactionManager neo4jTransactionManager() throws Exception { JtaTransactionManager transactionManager = new JtaTransactionManagerFactoryBean(this.getGraphDatabaseService()).getObject(); transactionManager.setAllowCustomIsolationLevels(true); return transactionManager; }