Java List UnsupportedOperationException
1. Overview In this quick tutorial, we’ll discuss a common Exception that can occur when working with some the API of most List implementations – the UnsupportedOperationException. A java.util.List...
View ArticleConditionals 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...
View ArticleWorking with Fragments in Thymeleaf
1. Overview In this tutorial, we’ll show how to make use of Thymeleaf Fragments to reuse some common parts of a site. After setting up a very simple Spring MVC project, we’ll focus on views. If you’re...
View ArticleSpring Boot Change Context Path
1. Overview Spring Boot, by default, serves content on the root context path (“/”). And while, usually, it’s a good idea to prefer convention over configuration, there are cases when we do want to...
View Article@Before vs @BeforeClass vs @BeforeEach vs @BeforeAll
1. Introduction In this short tutorial, we’re going to explain the differences between the @Before, @BeforeClass, @BeforeEach and @BeforeAll annotations in JUnit 4 and 5 – with practical examples of...
View ArticleFacade Design Pattern in Java
1. Introduction In this quick tutorial, we’re going to take a look at one of the structural design patterns: the Facade. First, we’ll give an overview of the pattern, list its benefits and describe...
View ArticleServlet Redirect vs Forward
1. Overview Occasionally, the initial HTTP Request Handler in our Java Servlet needs to delegate the Request to another resource. In these cases, we can either forward the request further or redirect...
View ArticleSpring Boot: Configuring a Main Class
1. Overview This quick tutorial provides different ways of defining an entry point into a Spring Boot application via Maven and Gradle. A Spring Boot application’s main class is a class that contains...
View ArticleObtaining Auto-generated Keys in Spring JDBC
1. Introduction In this quick tutorial, we’ll explore the possibility of getting the auto-generated key after inserting entities when working with Spring JDBC. 2. Maven Dependencies At first, we need...
View ArticleUsing the JetS3t Java Client With Amazon S3
1. Overview In this tutorial, we’ll use the JetS3t library with Amazon S3. Simply put, we’ll create buckets, write data to them, read data back, copy it, and then list and delete them. 2. JetS3t Setup...
View ArticleA Guide to Java 9 Modularity
1. Overview Java 9 introduces a new level of abstraction above packages, formally known as the Java Platform Module System (JPMS), or “Modules” for short. In this tutorial, we’ll go through the new...
View ArticleA Guide to Apache Ignite
1. Introduction Apache Ignite is an open source memory-centric distributed platform. We can use it as a database, a caching system or for the in-memory data processing. The platform uses memory as a...
View ArticleFiltering Kotlin Collections
1. Overview Kotlin collections are powerful data structures with many beneficial methods that put it over and beyond Java collections. We’re going to cover a handful of filtering methods available in...
View ArticleMaven Resources Plugin
1. Overview This tutorial describes the resources plugin, one of the core plugins of the Maven build tool. For an overview of the other core plugins, refer to this article. 2. Plugin Goals The...
View ArticleMaven Compiler Plugin
1. Overview This quick tutorial introduces the compiler plugin, one of the core plugins of the Maven build tool. For an overview of the other core plugins, refer to this article. 2. Plugin Goals The...
View ArticleQuick Guide to the Maven Surefire Plugin
1. Overview This tutorial demonstrates the surefire plugin, one of the core plugins of the Maven build tool. For an overview of the other core plugins, refer to this article. 2. Plugin Goal We can run...
View ArticleThe Maven Failsafe Plugin
1. Overview This to-the-point tutorial describes the failsafe plugin, one of the core plugins of the Maven build tool. For an overview of the other core plugins, refer to this article. 2. Plugin Goals...
View ArticleQuick Guide to the Maven Install Plugin
1. Overview This article describes the install plugin, one of the core plugins of the Maven build tool. For an overview of the other core plugins, refer to this article. 2. Plugin Goals We use the...
View ArticleThe Maven Deploy Plugin
1. Overview This tutorial introduces the deploy plugin, one of the core plugins of the Maven build tool. For a quick overview of the other core plugins, refer to this article. 2. Plugin Goals We use...
View ArticleThe Maven Clean Plugin
1. Overview This quick tutorial describes the clean plugin, one of the core plugins of the Maven build tool. For an overview of the other core plugins, refer to this article. 2. Plugin Goal The clean...
View Article