Criei a controller: @Controller public class HelloController {
@GetMapping("/hello")
public String hello() {
return "hello.html";
}
}
Criei a página HTML: hello.html
Ao chamar o localhost:8080/hello da o seguinte erro:
Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Feb 18 17:13:08 BRT 2021 There was an unexpected error (type=Not Found, status=404). No message available