Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Chamar um pagina html

no controller, como faço para chamar uma pagina HTML

1 resposta
solução!

Ao declarar um Controller dessa forma:

@Controller
public class HomeController {

    @GetMapping("/assessment")
    public String index() {
        return "index";
    }

}

Seu modelo em "src / main / resources / templates / index.html" será retornado

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Getting Started: Serving Web Content</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
    <p>Hello World!</p>
</body>
</html>