我正在开发一个新的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是正确的位置。