Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package spittr.config;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RequestMapping;
- import static org.springframework.web.bind.annotation.RequestMethod.GET;
- @Controller /* Declarado como un controlador */
- public class HomeController {
- /* Manejar solicitudes GET para "/" */
- @RequestMapping( value = "/", method = GET )
- public String home() {
- return "home"; /* El nombre de la vista es home */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement