maven資源導出問題

轉自:http://www.javashuo.com/article/p-gpqajegr-cr.htmlhtml

我怕這個連接訪問不到了,因此沾上代碼。java

 <!--在build中配置resources,來防止咱們資源導出失敗的問題-->
    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <excludes>
                    <exclude>**/*.properties</exclude>
                    <exclude>**/*.xml</exclude>
                </excludes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
    </build>
相關文章
相關標籤/搜索