File tree 2 files changed +17
-0
lines changed
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Andy Wilkinson
11
11
:dependency-management-plugin-documentation: {dependency-management-plugin}/blob/master/README.md
12
12
:gradle-userguide: https://docs.gradle.org/current/userguide
13
13
:gradle-dsl: https://docs.gradle.org/current/dsl
14
+ :gradle-api: https://docs.gradle.org/current/javadoc
14
15
:application-plugin: {gradle-userguide}/application_plugin.html
15
16
:groovy-plugin: {gradle-userguide}/groovy_plugin.html
16
17
:java-plugin: {gradle-userguide}/java_plugin.html
Original file line number Diff line number Diff line change @@ -42,6 +42,22 @@ include::../gradle/running/application-plugin-main-class-name.gradle[tags=main-c
42
42
43
43
44
44
45
+ [[running-your-application-passing-arguments]]
46
+ === Passing arguments to your application
47
+ Like all `JavaExec` tasks, arguments can be passed into `bootRun` from the command line
48
+ using `--args='<arguments'>` when using Gradle 4.9 or later. For example, to run your
49
+ application with a profile named `dev` active the following command can be used:
50
+
51
+ [source,bash,indent=0,subs="verbatim"]
52
+ ----
53
+ $ ./gradlew bootRun --args='--spring.profiles.active=dev'
54
+ ----
55
+
56
+ See {gradle-api}/org/gradle/api/tasks/JavaExec.html#setArgsString-java.lang.String-[the
57
+ javadoc for `JavaExec.setArgsString`] for further details.
58
+
59
+
60
+
45
61
[[running-your-application-reloading-resources]]
46
62
=== Reloading resources
47
63
If devtools has been added to your project it will automatically monitor your
You can’t perform that action at this time.
0 commit comments