0
我試圖使用Spring Data JPA,Neo4J和MongoDB設置Spring Boot應用程序。目標是能夠在每個數據存儲中保存不同的實體,以及使用跨商店實體。在Spring Boot中使用多個嵌入式數據存儲
該項目似乎與每個單獨的店很好地工作,但節省了JPA實體引發此異常:如果我刪除所有的Neo4j和MongoDB相關的代碼
org.springframework.dao.InvalidDataAccessApiUsageException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
此異常不提高。
下面是該項目的鏈接在GitHub上:
github存儲庫已更新。 – Raphael