java-tutorials/spring-web-modules/spring-thymeleaf-4/README.md

28 lines
892 B
Markdown

## Spring Thymeleaf
This module contains articles about Spring with Thymeleaf
### Relevant Articles:
- [CSRF Protection with Spring MVC and Thymeleaf](https://www.baeldung.com/csrf-thymeleaf-with-spring-security)
- [Conditionals in Thymeleaf](https://www.baeldung.com/spring-thymeleaf-conditionals)
- [Iteration in Thymeleaf](https://www.baeldung.com/thymeleaf-iteration)
- [Spring with Thymeleaf Pagination for a List](https://www.baeldung.com/spring-thymeleaf-pagination)
### Build the Project
mvn clean install
### Run the Project
mvn cargo:run
- **note**: starts on port '8082'
Access the pages using the URLs:
- http://localhost:8082/spring-thymeleaf-4/
- http://localhost:8082/spring-thymeleaf-4/addStudent/
- http://localhost:8082/spring-thymeleaf-4/listStudents/
The first URL is the home page of the application. The home page has links to the second and third pages.