Thymeleaf Articles
2 articles about Thymeleaf. Explore Spring Boot implementation, design, and operations across related topics.
-
Understanding Spring Security CSRF Protection Correctly - Configuration Differences Between REST APIs and Web Applications
Explains why POST requests return 403 in Spring Security from the perspective of how CSRF works. Covers why csrf().disable() is the correct approach for REST APIs, why it should be enabled for Thymeleaf form-based apps, along with implementation examples using Spring Security 6's Lambda DSL.
-
Server-Side Rendering with Thymeleaf in Spring Boot: Implementation Guide
A hands-on tutorial covering how to integrate Thymeleaf into Spring Boot, including embedding model attributes in HTML, form processing, displaying Bean Validation errors, and Spring Security integration—all in one comprehensive guide.