From 36faa1d42ae06c28a03ee97ae80f4221b33ce0a6 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Tue, 9 Jun 2020 16:05:44 -0700 Subject: [PATCH] Document using system properties in gradle plugin docs Closes gh-21317 --- .../src/main/asciidoc/running.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc/running.adoc b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc/running.adoc index 01543572349..cc616b50c99 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc/running.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc/running.adoc @@ -89,6 +89,15 @@ See {gradle-api}/org/gradle/api/tasks/JavaExec.html#setArgsString-java.lang.Stri +[[running-your-application-passing-system-properties]] +=== Passing System properties to your application +Since `bootRun` is a standard `JavaExec` task, system properties can be passed to the application's JVM by specifying them in the build script. +The values can be parameterized and passed as properties on the command line using the `-P` flag. + +See {gradle-api}/org/gradle/api/tasks/JavaExec.html#systemProperty-java.lang.String-java.lang.Object-[the javadoc for `JavaExec.systemProperty`] for further details. + + + [[running-your-application-reloading-resources]] === Reloading resources If devtools has been added to your project it will automatically monitor your application for changes.