Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat Helloworld.groovy
- @RestController
- class HelloworldController {
- @RequestMapping("/")
- String home() {
- return "Hello world!"
- }
- }
- $ spring run Helloworld.groovy
- $ curl localhost:8080
- Hello world!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement