【发布时间】:2010-07-30 20:11:08
【问题描述】:
假设我在标准 maven Web 应用程序布局中有一个 .properties 文件和 hibernate.cfg.xml 应该将它们放置在哪里,以便在我运行包时将它们包含在我的 .war 文件中?
src/main/资源
src/main/java
src/main/webapp
src/main/config
?
【问题讨论】:
假设我在标准 maven Web 应用程序布局中有一个 .properties 文件和 hibernate.cfg.xml 应该将它们放置在哪里,以便在我运行包时将它们包含在我的 .war 文件中?
src/main/资源
src/main/java
src/main/webapp
src/main/config
?
【问题讨论】:
应用程序/库资源进入src/main/resources(它们将在编译后首先进入target/classes,然后在打包后的war中进入WEB-INF/classes)。
【讨论】: