Conditionals in Thymeleaf 1. Overview In this tutorial, we’re going to have a look at the different types of conditionals available in Thymeleaf. For a quick introduction to Thymeleaf, please refer to this article. 2. Maven Dependencies Let’s start with the Maven dependencies that are required to use Thymeleaf along… Continue Reading spring-thymeleaf-conditionals

Collect a Java Stream to an Immutable Collection 1. Introduction In this quick article, we’re going to have a look at various ways of collecting Java Streams to immutable Collections – which require a special approach because standard Collectors work only with mutable data structures. 2. Maven Dependency We are… Continue Reading java-stream-immutable-collection

Maven Project with Multiple Source Directories 1. Introduction We sometimes need to use multiple source directories in a Java project. A common case example when there are classes that are generated automatically and placed in a different directory. In this short article, we’ll show how to set up Maven to work… Continue Reading maven-project-multiple-src-directories

Spring Boot Embedded Tomcat Logs 1. Introduction Spring Boot comes with an embedded Tomcat server, which is super-handy. However, we can’t see Tomcat’s logs by default. In this tutorial, we’ll learn how to configure Spring Boot to show Tomcat’s internal and access logs via a toy application. 2. Sample Application… Continue Reading spring-boot-embedded-tomcat-logs