Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
e8b59b9e
Commit
e8b59b9e
authored
Oct 27, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CLI command line arguments examples
parent
e858cfcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
spring-boot-cli.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc
+19
-0
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc
View file @
e8b59b9e
...
...
@@ -80,6 +80,7 @@ is completely self-contained so you don't need any external Groovy installation.
Here is an example ``hello world'' web application written in Groovy:
.hello.groovy
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
----
@RestController
...
...
@@ -93,7 +94,25 @@ Here is an example ``hello world'' web application written in Groovy:
}
----
Then
----
$ spring run hello.groovy
----
To pass command line arguments to the application, you need to use a
"--" to separate them from the "spring" command arguments, e.g.
----
$ spring run hello.groovy -- --server.port=9000
----
and to set JVM command line arguments you can use the `JAVA_OPTS`
environment variable, e.g.
----
$ JAVA_OPTS=-Xmx1024m spring run hello.groovy
----
[[cli-install-uninstall]]
=== Adding dependencies to the CLI
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment