I started an application with Spring Boot , Generate maven project with Java 1.8 and Spring Boot 2.0.3 I have created a simple controller and a view and it does not map it to me. Should we touch something? Any application propertie?
I have the view in templates ( holamundo.html
) and my controller:
package controladores;
import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @Controller @RequestMapping("/say")
public class holamundoController {
@GetMapping("/holamundo")
public String HolaMundo(){
return "holamundo";
}
}