Last active
October 30, 2018 09:54
-
-
Save biniama/931d12668e395742022506a56702e6c6 to your computer and use it in GitHub Desktop.
Simple API Server using Spring Boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
class HelloAPI { | |
@RequestMapping("/") | |
String hello() { | |
"Hello, World!" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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