- Apresentação da disciplina.
- Introdução ao Spring MVC.
- OiArquitetura MVC e princípios de projeto (Célio Normando, 2024)
- Introdução ao Padrão MVC (Higor, 2013)
- Spring Web MVC
- Desenho e definição do projeto.
- Spring MVC - Controllers.
Implementar a tela 4. Ilustração abaixo:
- Views and Thymeleaf.
- Adicionar
xmlns:th="http://www.thymeleaf.org"na tag html. Exemplo:<!doctype html> <html xmlns:th="http://www.thymeleaf.org">
- Retornar um texto da controller
th:text="${variavelNaController}" - Formularios devem conter:
- Tag de abertura do form:
action="#"th:action="@{pathController}"th:object="${objectName}"method="post">
- Tag input field:
name="attributeName"th:value="*{cpf}"
- Tag de abertura do form:
