@danilosilvadev escreveu:
Estou iniciando meu primeiro projeto springboot. Mas estou recebendo um erro no navegador:
Esse é meu controller:
@Controller public class ConvidadosController { @RequestMapping("/convidados") public String listar() { return "ListaConvidados"; } }
Aqui meu ListaConvidados.html que está em template:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width" /> <title>Lista de Convidados</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7"crossorigin="anonymous"/> </head> <body> <h1>AlgaWorks!</h1> </body> </html>
E aqui meu erro:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sat Apr 15 15:35:31 GMT-03:00 2017
There was an unexpected error (type=Internal Server Error, status=500).
Exception parsing document: template="ListaConvidados", line 12 - column 84O que posso fazer? to seguindo a apostilha do algaworks.
Mensagens: 10
Participantes: 2