@@ -130,20 +130,22 @@ Usage
130
130
mvn spring-boot:run
131
131
---
132
132
133
- By default the application is executed in a forked process. Although this is not
134
- recommended, it is possible to execute the application directly from the Maven JVM by
135
- disabling the <<<fork>>> property. Doing so means that <<<jvmArguments>>>,
136
- <<<systemPropertyVariables>>>, <<<environmentVariables>>> and <<<agent>>> options are
137
- ignored.
138
-
139
- If you need to specify some JVM arguments (i.e. for debugging purposes), you can use
140
- the <<<jvmArguments>>> parameter, see {{{./examples/run-debug.html}Debug the application}}
141
- for more details. There is also explicit support for
142
- {{{./examples/run-system-properties.html}system properties}} and
133
+ By default the application is executed in a forked process and setting properties on the
134
+ command-line will not affect the application. If you need to specify some JVM arguments
135
+ (i.e. for debugging purposes), you can use the <<<jvmArguments>>> parameter, see
136
+ {{{./examples/run-debug.html}Debug the application}} for more details. There is also
137
+ explicit support for {{{./examples/run-system-properties.html}system properties}} and
143
138
{{{./examples/run-env-variables.html}environment variables}}.
144
139
145
- As a convenience, the profiles to enable are handled by a specific property (
146
- <<<profiles>>>), see {{{./examples/run-profiles.html}Specify active profiles}}.
140
+ As enabling a profile is quite common, there is dedicated <<<profiles>>> property that
141
+ offers a shortcut for
142
+ <<<-Dspring-boot.run.jvmArguments="-Dspring.profiles.active=dev">>>,
143
+ see {{{./examples/run-profiles.html}Specify active profiles}}.
144
+
145
+ Although this is not recommended, it is possible to execute the application directly
146
+ from the Maven JVM by disabling the <<<fork>>> property. Doing so means that the
147
+ <<<jvmArguments>>>, <<<systemPropertyVariables>>>, <<<environmentVariables>>> and
148
+ <<<agents>>> options are ignored.
147
149
148
150
Spring Boot 1.3 has introduced <<<devtools>>>, a module to improve the development-time
149
151
experience when working on Spring Boot applications. To enable it, just add the following
0 commit comments