Skip to content

Instantly share code, notes, and snippets.

@mazhar266
Created October 23, 2019 04:29
Show Gist options
  • Save mazhar266/27bb141544cea90cfd53c8939009be1e to your computer and use it in GitHub Desktop.
Save mazhar266/27bb141544cea90cfd53c8939009be1e to your computer and use it in GitHub Desktop.
Smallest Spring Framework Web Service

Requirements

  • JDK
  • Spring CLI

How to run

  • spring run ThisWillActuallyRun.groovy
@Controller
class ThisWillActuallyRun {
@RequestMapping("/")
@ResponseBody
String home(){
"Hello World"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment