| 7 | import org.springframework.data.neo4j.core.transaction.Neo4jTransactionManager; |
| 8 | |
| 9 | @Configuration |
| 10 | public class Neo4jConfig { |
| 11 | |
| 12 | /** |
| 13 | * 显式声明 Neo4j 事务管理器,避免因自动配置缺失导致的 transactionTemplate 为空。 |
| 14 | */ |
| 15 | @Bean |
| 16 | public Neo4jTransactionManager neo4jTransactionManager(Driver driver, |
| 17 | DatabaseSelectionProvider databaseSelectionProvider) { |
| 18 | return new Neo4jTransactionManager(driver, databaseSelectionProvider); |
| 19 | } |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected