|
|
@ -45,7 +45,7 @@ include::../gradle/running/application-plugin-main-class-name.gradle[tags=main-c
|
|
|
|
[[running-your-application-passing-arguments]]
|
|
|
|
[[running-your-application-passing-arguments]]
|
|
|
|
=== Passing arguments to your application
|
|
|
|
=== Passing arguments to your application
|
|
|
|
Like all `JavaExec` tasks, arguments can be passed into `bootRun` from the command line
|
|
|
|
Like all `JavaExec` tasks, arguments can be passed into `bootRun` from the command line
|
|
|
|
using `--args='<arguments'>` when using Gradle 4.9 or later. For example, to run your
|
|
|
|
using `--args='<arguments>'` when using Gradle 4.9 or later. For example, to run your
|
|
|
|
application with a profile named `dev` active the following command can be used:
|
|
|
|
application with a profile named `dev` active the following command can be used:
|
|
|
|
|
|
|
|
|
|
|
|
[source,bash,indent=0,subs="verbatim"]
|
|
|
|
[source,bash,indent=0,subs="verbatim"]
|
|
|
|