Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. package spittr.config;
  2.  
  3. import org.springframework.stereotype.Controller;
  4. import org.springframework.web.bind.annotation.RequestMapping;
  5.  
  6. import static org.springframework.web.bind.annotation.RequestMethod.GET;
  7.  
  8. @Controller /* Declarado como un controlador */
  9. public class HomeController {
  10.  
  11. /* Manejar solicitudes GET para "/" */
  12. @RequestMapping( value = "/", method = GET )
  13. public String home() {
  14. return "home"; /* El nombre de la vista es home */
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement