

我也踩过这个坑( 2 )
jetty/tomcat
详细描述
错误截图




编辑于2025-04-02
-
[郑州|结业弟子]JAVA-张强
0在pom文件里配置resources路径:
<resources>
<resource>
<directory>src/main/java</directory>
<!--<targetPath>WEB-INF/classes</targetPath>-->
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<!-- 是否替换资源中的属性-->
<!--<filtering>true</filtering>-->
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*</include>
</includes>
</resource>
</resources>编辑于2018-05-17
- 去第 页