Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. package com.restfull.core.controllers;
  2.  
  3. import org.springframework.stereotype.Controller;
  4. import org.springframework.web.bind.annotation.GetMapping;
  5. import org.springframework.web.bind.annotation.ResponseBody;
  6.  
  7. @Controller
  8. public class IndexController {
  9.  
  10. @GetMapping("/")
  11. @ResponseBody
  12. public String helloWorld() {
  13. return "Hello World!";
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement