mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Remove run example from documentation
See gh-33519
This commit is contained in:
parent
7cdf3f432f
commit
f291695bda
@ -194,42 +194,3 @@ Scoop installs `spring` to `~/scoop/apps/springboot/current/bin`.
|
||||
|
||||
NOTE: If you do not see the app manifest, your installation of scoop might be out-of-date.
|
||||
In that case, run `scoop update` and try again.
|
||||
|
||||
|
||||
|
||||
[[getting-started.installing.cli.quick-start]]
|
||||
==== Quick-start Spring CLI Example
|
||||
You can use the following web application to test your installation.
|
||||
To start, create a file called `app.groovy`, as follows:
|
||||
|
||||
[source,groovy,indent=0,pending-extract=true,subs="verbatim"]
|
||||
----
|
||||
@RestController
|
||||
class ThisWillActuallyRun {
|
||||
|
||||
@RequestMapping("/")
|
||||
String home() {
|
||||
"Hello World!"
|
||||
}
|
||||
|
||||
}
|
||||
----
|
||||
|
||||
Then run it from a shell, as follows:
|
||||
|
||||
[source,shell,indent=0,subs="verbatim"]
|
||||
----
|
||||
$ spring run app.groovy
|
||||
----
|
||||
|
||||
NOTE: The first run of your application is slow, as dependencies are downloaded.
|
||||
Subsequent runs are much quicker.
|
||||
|
||||
Open `http://localhost:8080` in your favorite web browser.
|
||||
You should see the following output:
|
||||
|
||||
[indent=0]
|
||||
----
|
||||
Hello World!
|
||||
----
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user