Skip to content

Commit

Permalink
Merge pull request #33519 from sannanansari
Browse files Browse the repository at this point in the history
* pr/33519:
  Remove run example from documentation

Closes gh-33519
  • Loading branch information
mhalbritter committed Jan 9, 2023
2 parents 7cdf3f4 + f291695 commit 46c799d
Showing 1 changed file with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!
----

0 comments on commit 46c799d

Please sign in to comment.