Java Concurrency Utility with JCTools
1. Overview In this tutorial, we’ll introduce the JCTools (Java Concurrency Tools) library. Simply put, this provides a number of utility data structures suitable for working in a multi-threaded...
View ArticleA Quick Intro to the SpringBootServletInitializer
1. Overview In this tutorial, we’ll go through a quick introduction of the SpringBootServletInitializer. This is an extension of WebApplicationInitializer which runs a SpringApplication from a...
View ArticleThe State of Java in 2018
I’ve been running the yearly “State of Java” survey for the last couple of weeks. It’s the 5th year of the survey and naturally the largest one yet, with 5160 developers taking the time to go through...
View ArticleReactive Flow with MongoDB, Kotlin, and Spring WebFlux
1. Overview In this tutorial, we’ll write a simple application showcasing a fully reactive flow using Spring Data Reactive MongoDB and Spring SSeEmitter. On one side, we’ll apply Spring Data Reactive...
View ArticleHow to Find an Element in a List with Java
1. Overview Finding an element in a list is a very common task we come across as developers. In this quick tutorial, we’ll cover different ways we can do this with Java. 2. Setup Let’s start by...
View ArticleIntroduction to Primefaces
1. Introduction Primefaces is an open source UI component suite for Java Server Faces (JSF) applications. In this tutorial, we’ll give an introduction to Primefaces, and demonstrate how to configure...
View ArticleIteration in Thymeleaf
1. Overview Thymeleaf is a versatile Java template engine for processing XML, XHTML and HTML5 documents. In this quick tutorial, we’ll take a look at how we can perform iteration with Thymeleaf, along...
View ArticleSending Emails with Java
1. Overview In this quick tutorial, we’re going to look at sending email with and without attachments – using the core Java mail library. 2. Project Setup and Dependency For this article, we’ll be...
View ArticleHow to Define a Spring Boot Filter?
1. Overview In this quick tutorial, we’ll explore how to define custom filters and specify their invocation order with the help of Spring Boot. 2. Defining Filters and the Invocation Order Let’s...
View ArticleService Locator Pattern
1. Introduction In this tutorial, we’re going to learn about the Service Locator design pattern in Java. We’ll describe the concept, implement an example and highlight the pros and cons of its use. 2....
View ArticleHandling NoClassDefFoundError for JAXBException in Java 9
1. Introduction For anyone who has tried upgrading to Java 9, they have likely experienced some sort of NoClassDefFoundError when compiling code that previously worked in earlier versions of Java. In...
View ArticleHow to Store Duplicate Keys in a Map in Java?
1. Overview In this tutorial, we’re going to explore the available options for handling a Map with duplicate keys or, in other words, a Map which allows storing multiple values for a single key. 2....
View ArticleHow to Change the Default Port in Spring Boot
1. Introduction Spring Boot provides sensible defaults for many configuration properties. Still, we sometimes need to customize these with our case-specific values. A common use case is changing the...
View ArticleA Quick Example of Spring Websockets’ @SendToUser Annotation
1. Overview In this quick tutorial, we’re going to illustrate how to send a message to a specific session or particular user using Spring WebSockets. For an introduction to the above module, please...
View ArticleUsing Java Assertions
1. Introduction The Java assert keyword allows developers to quickly verify certain assumptions or state of a program. In this article, we’ll take a look at how to use the Java assert keyword. 2....
View ArticleProjections and Excerpts in Spring Data REST
1. Overview In this article – we’ll explore Spring Data REST’s concepts of projections and excerpts. We’ll learn how to use projections to create custom views of our models and how to use excerpts as...
View ArticleRunning Spring Boot Applications With Minikube
1. Overview In this previous article, we covered a theoretical introduction about Kubernetes. In this tutorial, we’ll discuss how to deploy a Spring Boot application on a local Kubernetes environment,...
View ArticleSpring Data JPA @Query
1. Overview Spring Data provides many ways to define a query that we can execute. One of these is the @Query annotation. In this tutorial, we’ll demonstrate how to use the @Query annotation in Spring...
View ArticleBeanNameAware and BeanFactoryAware Interfaces in Spring
1. Overview In this quick tutorial, we’re going to focus on the BeanNameAware and BeanFactoryAware interfaces, in the Spring Framework. We’ll describe each interface separately with the pros and cons...
View ArticleJava Streams vs Vavr Streams
1. Introduction In this article, we’ll be looking at how Stream implementations differ in Java and Vavr. This article assumes familiarity with the basics of both Java Stream API and the Vavr library....
View Article