In this case, you need to add the following configuration in the pom.xml file
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
Read More:
- The icon on the layui page is not displayed, and an error message is reported: Failed to decode downloaded font …..
- Failed to import static file of vue3 static resource. There is no static folder
- The java.lang.exceptionininitializererror of mybatis reports an error
- An error is reported about import Java. SQL. *; problem
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
- After Vue is packaged, a blank page appears, an error is reported in the resource request, and there is no error handling scheme
- Nuxt cannot find the static resource in static
- When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error
- Spring MVC – enable static resource access
- An error was reported when idea compiles Java: no symbol was found_ How to solve this problem
- Word failed to convert PDF, export failed due to an unexpected error
- Idea running Flink program reported an error: static methods in interface require- target:jvm-1.8
- Spock + powermock simulation static method reports an error java.lang.classcastexception
- Request cannot get static resource
- An error of 500 is reported when an item is assigned to a role
- Java retainAll throws an unsupported operation exception record
- Pikachu vulnerability is installed in the shooting range, and an error is reported when connecting to the MySQL database
- IE8: this operation cannot be completed due to error 80020101
- JMeter performance test monitoring server resource reported error: java.net.ConnectException : Connection refused: connect
- How to Fix Spring Boot OTS parsing error: Failed to convert WOFF 2.0