Skip to content

Instantly share code, notes, and snippets.

@JamesDaniel JamesDaniel/app.groovy
Last active Jun 24, 2017

Embed
What would you like to do?
spring-boot-groovy
@RestController
class ThisWillActuallyRun {
@RequestMapping("/")
String home() {
return "Hello World!"
}
}
@RestController
class ThisWillActuallyRunTwo {
@RequestMapping("/two")
String home() {
return "Hello World two!"
}
}
@RestController
class ThisWillActuallyRunThree {
@RequestMapping("/three")
String home() {
return "Hello World three!"
}
}
// From bash terminal run the following command:
// spring run app.groovy -- --server.port=9000
// To compile a jar:
// spring jar myapp.jar *.groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.