【发布时间】:2011-02-04 08:41:50
【问题描述】:
在测试 Getting Started With JPA in Spring 2.0 教程中创建的应用程序时,我收到以下错误。我在 Eclipse 中创建了 Maven 项目。这是项目结构的一部分
ecotraveler
src
main
java
com
enam
resources
config
applicationContext.xml
WebContent
META-INF
persistance.xml
在运行测试类时,我收到了No persistence units parsed from {classpath*:META-INF/persistence.xml}
谁能告诉我可能是什么问题?似乎应用程序无法找到指定的路径。我仔细检查了 WebContet/META-INF 是否在 Eclipse 构建路径中。
【问题讨论】:
标签: eclipse hibernate spring jpa maven