Skip to content

Spring boot

GunSik Choi edited this page Mar 1, 2016 · 10 revisions

Spring boot cli

Spring boot groovy sample

  • hello.groovy
@RestController
class GreetingsRestController {

  @RequestMapping("/hi/{name}")
  def hi(@PathVariable String name) {
    [ greeting : "Hello, " + name + "!" ]
  }
}
  • run
spring run hello.groovy

Spring MVC

Clone this wiki locally