pom.xml::配置

将资源文件加载放入classes文件夹中

 <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>
    </build>
posted @ 2022-11-17 23:18  壹剑霜寒十四州  阅读(13)  评论(0编辑  收藏  举报