Spring Security with Thymeleaf 1. Overview In this quick tutorial, we’ll focus on Spring Security with Thymeleaf. We’re going to create a Spring Boot application where we’ll demonstrate the usage of security dialect. Our choice for frontend technology is Thymeleaf – a modern, server-side web templating engine, with good integration… Continue Reading spring-security-thymeleaf

CSRF Protection with Spring MVC and Thymeleaf 1. Introduction Thymeleaf is a Java template engine for processing and creating HTML, XML, JavaScript, CSS and plaintext. For an intro to Thymeleaf and Spring, have a look at this writeup. In this article, we will discuss how to prevent Cross-Site Request Forgery… Continue Reading csrf-thymeleaf-with-spring-security

Thymeleaf lists Utility Object 1. Overview Thymeleaf is a Java template engine for processing and creating HTML. In this quick tutorial, we’ll look into Thymeleaf’s lists utility object to perform common list-based operations. 2. Computing Size First, the size method returns the length of a list. We can include it, say,… Continue Reading thymeleaf-lists-utility

Spring and Thymeleaf 3: Expressions 1. Introduction Thymeleaf is a Java template engine for processing and creating HTML, XML, JavaScript, CSS and plain text. For an intro to Thymeleaf and Spring, have a look at this write-up. Besides these basic functions, Thymeleaf offers us a set of utility objects that… Continue Reading spring-thymeleaf-3-expressions

Template Engines for Spring 1. Overview The Spring web framework is built around the MVC (Model-View-Controller) pattern, which makes it easier to separate concerns in an application. This allows for the possibility to use different view technologies, from the well established JSP technology to a variety of template engines. In… Continue Reading spring-template-engines