【问题标题】:Standard maven layout for a web application, do my .properties files go?Web 应用程序的标准 Maven 布局,我的 .properties 文件会去吗?
【发布时间】: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-2 maven


    【解决方案1】:

    应用程序/库资源进入src/main/resources(它们将在编译后首先进入target/classes,然后在打包后的war中进入WEB-INF/classes)。

    另见

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-07-29
    • 2014-05-28
    • 2010-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-21
    • 2011-05-17
    相关资源
    最近更新 更多