Skip to content

Instantly share code, notes, and snippets.

@biniama
Last active October 30, 2018 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biniama/931d12668e395742022506a56702e6c6 to your computer and use it in GitHub Desktop.
Save biniama/931d12668e395742022506a56702e6c6 to your computer and use it in GitHub Desktop.
Simple API Server using Spring Boot
@RestController
class HelloAPI {
@RequestMapping("/")
String hello() {
"Hello, World!"
}
}
1. Make sure Spring Boot is installed
`sdk install springboot`
`spring --version`
2. Run
`spring run app.groovy`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment