Skip to content

Commit dc97d56

Browse files
StevenGeenssnicoll
authored andcommitted
Update documentation on resources filtering
Add an explicit note about the spring-boot:run goal that prevents the use of resources filtering by default.
1 parent 17fd3d4 commit dc97d56

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,13 @@ Maven '`project properties`' via `@..@` placeholders, e.g.
297297
NOTE: In the above example we used `+project.*+` to set some values to be used as
298298
fallbacks if the Maven resource filtering has not been switched on for some reason.
299299

300+
TIP: The `spring-boot:run` maven goal adds `src/main/resources` directly to
301+
the classpath (for hot reloading purposes). This circumvents the resource
302+
filtering and this feature. You can use the `exec:java` goal instead or
303+
customize the plugin's configuration, see the
304+
{spring-boot-maven-plugin-site}/usage.html[plugin usage page] for more details.
305+
306+
300307
NOTE: If you don't use the starter parent, in your `pom.xml` you need (inside the `<build/>` element):
301308

302309
[source,xml,indent=0]

0 commit comments

Comments
 (0)