0
我想創建多個模塊與多個持久性xml文件。想法是將實體類保留在它所屬的相同模塊內。在春天多個持久性文件
模塊'A'配置了JPA和persistence.xml並且工作正常。 模塊'B'與模塊'A'有依賴關係,並有自己的persistence.xml。
當我嘗試使用我得到
IllegalStateException:Conflicting persistence unit definitions for name in
我建立與Spring Roo的這個測試應用程序。請說明這一點。歡呼聲
這非常好用。感謝很多。我只是需要更改幾個文件。即persistance.xml persistanceUnit名稱和applicationcontext tx管理器對persistanceUnit的引用。 – Charith