我正在開發一個新的Spring + JPA2/Hibernate + Wicket項目,並想知道哪些配置文件應該去哪裏?applicationContext.xml和其他配置文件 - 他們應該去哪裏?
的applicationContext.xml 我已經看到了這個無論是在SRC /主/資源/ META-INF和公正的src /主/資源/
的persistence.xml 大多數時候,我在src/main/resources/META-INF中看到了它。在我而言,它包含以下內容:
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
version="1.0">
<persistence-unit name="ApplicationEntityManager" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
</persistence-unit>
</persistence>
的web.xml 我猜的src /主/ web應用/ WEB-INF是正確的位置。