|
|
|
@ -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!
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|