Thymeleaf Articles
3 articles about Thymeleaf. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Dynamically Generate PDFs in Spring Boot - Report Output with OpenPDF and Thymeleaf
Implementation guide for dynamically generating PDFs in Spring Boot. Covers license comparison of OpenPDF/iText/Flying Saucer, conversion from Thymeleaf templates, Japanese font embedding, and download implementation with REST API.
-
Understanding Spring Security CSRF Protection Correctly - Configuration Differences Between REST APIs and Web Apps
Solve the cause of POST returning 403 in Spring Security by understanding the CSRF mechanism. From why `csrf().disable()` is correct for REST APIs, the required settings for Thymeleaf forms, to AJAX support via `CookieCsrfTokenRepository.withHttpOnlyFalse()`, organized with Spring Security 6 Lambda DSL implementation examples.
-
Spring Boot Thymeleaf Server-Side Rendering Implementation Guide - Forms, Validation, and Security
A comprehensive implementation tutorial for Spring Boot 3.x × Thymeleaf 3.1, covering HTML responses, form handling, Bean Validation error display, and Spring Security integration (CSRF/authentication display switching). Based on code examples that work as-is.