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.
-
Server-Side Rendering with Thymeleaf in Spring Boot: A Complete Guide to Forms, Validation, and Security Integration
A hands-on tutorial covering Spring Boot 3.x and Thymeleaf 3.1 end to end: HTML responses, form handling, Bean Validation error display, and Spring Security integration (CSRF and auth-aware view switching). Built around runnable code examples you can use as-is.