Generate PDF files with Spring Boot using ITextPDF

In this post, we will discuss on how to generate PDF files using Spring Boot, thymeleaf and Itext library. Understanding Itext PDF The library helps generate PDF files by either creating each element manually or by converting a HTML+CSS into PDF. The methods provided by this library is straightforward. Let’s see both of these methods…

Content negotiation with Spring Boot

In this post we will see how to implement content negotiation in a Spring Boot application. Introduction You may have written RESTful API endpoints where the client sends JSON request and the server sends back a JSON response. However, What would you do if the client can only understand XML? Obviously, You need to write extra logic for XML representation of…

Send firebase push notifications From Spring Boot

Let’s learn how to send push notifications to iOS and android mobile devices via firebase cloud messaging(FCM) service using Spring Boot with an example. Mobile notifications play a major role in user engagement. With the firebase’s new SDK for java, sending Firebase push notification from a Spring Boot application got a lot easier. Usually, FCM…

Thymeleaf views from database in Spring Boot

In this post, We will learn about how to load thymeleaf views from database without restarting the spring boot application. Problems with thymeleaf view files You have seen how to load thymeleaf templates for views or HTML emails. The problem with thymeleaf views is that you need to make a new build when you make…

Spring Boot Email using Thymeleaf with Example

In this post, We will see how to send HTML emails using thymeleaf templates in a spring boot application. Things got easier with spring boot and thymeleaf template engine. As you know, Thymeleaf is used as a View in Spring MVC applications. However, do you know you can use the same template Engine for generating…

FreeMarker vs Groovy vs Mustache vs Thymeleaf

In this post, we will try to compare FreeMarker vs Groovy vs Mustache vs Thymeleaf with examples. Spring Boot supports FreeMarker, Groovy, Mustache and Thymeleaf. But, how do they compare with each other? Let’s find out which template engine is the best for different use-cases in spring boot. For this comparison, I have created four…