https://github.com/eis/spring-boot-simplest
Simplest way to prototype with spring boot: groovy and spring cli.
https://github.com/eis/spring-boot-simplest
Last synced: 2 months ago
JSON representation
Simplest way to prototype with spring boot: groovy and spring cli.
- Host: GitHub
- URL: https://github.com/eis/spring-boot-simplest
- Owner: eis
- License: mit
- Created: 2017-03-17T11:28:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-20T19:31:37.000Z (about 9 years ago)
- Last Synced: 2025-01-01T08:20:49.344Z (over 1 year ago)
- Language: Shell
- Homepage: https://github.com/eis/spring-boot-simplest/wiki
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE
Awesome Lists containing this project
README
$ cat Helloworld.groovy
@RestController
class HelloworldController {
@RequestMapping("/")
String home() {
return "Hello world!"
}
}
$ spring run Helloworld.groovy
$ curl localhost:8080
Hello world!
$ spring jar app.jar Helloworld.groovy
$ docker build -t hello .
$ docker run -ti --rm hello