Display Auto-Configuration Report in Spring Boot
1. Overview The auto-configuration mechanism in Spring Boot attempts to automatically configure an application based on its dependencies. In this quick tutorial, we’ll see how Spring Boot can log its...
View ArticleValidation for Functional Endpoints in Spring 5
1. Overview It’s often useful to implement input validation for our APIs to avoid unexpected errors later when we’re processing the data. Unfortunately, in Spring 5 there’s no way to run validations...
View ArticleHeap Sort in Java
1. Introduction In this tutorial, we’ll see how Heap Sort works, and we’ll implement it in Java. Heap Sort is based on the Heap data structure. In order to understand Heap Sort properly, we’ll first...
View ArticleJava Weekly, Issue 251
Here we go… 1. Spring and Java >> An Introduction to Kotlin for Serverside Java Developers [infoq.com] A good overview of what Kotlin brings to the table and the kinds of applications it is...
View ArticleDockerizing Java Apps using Jib
1. Overview In this tutorial, we’ll take a look at Jib and how it simplifies containerization of Java applications. We’ll take a simple Spring Boot application and build its Docker image using Jib....
View ArticleGuide to Kotlin Interfaces
1. Overview In this tutorial, we’ll discuss how to define and implement interfaces in Kotlin. We’ll also take a look at how multiple interfaces can be implemented by a class. This can certainly cause...
View ArticleA Guide to Spring Session Reactive Support: WebSession
1. Introduction In this article, we’ll learn how to combine Spring Session with Spring WebFlux. Specifically, we’ll learn how to use Spring WebSession which unites Spring Session with Spring Boot 2’s...
View ArticleCustom Types in Hibernate
1. Overview Hibernate simplifies data handling between SQL and JDBC by mapping the Object Oriented model in Java with the Relational model in Databases. Although mapping of basic Java classes is...
View ArticleAn Introduction to SuanShu
1. Introduction The SuanShu is a Java math library for numerical analysis, statistics, root finding, linear algebra, optimization, and lots more. One of the things it provides is functionality for...
View ArticleConverting a Collection to ArrayList in Java
1. Overview Converting Java collections from one type to another is a common programming task. In this tutorial, we’ll convert any type of Collection to an ArrayList. Throughout the tutorial, we’ll...
View ArticleA Guide to SimpleDateFormat
1. Introduction In this tutorial, we’ll be taking an in-depth tour of the SimpleDateFormat class. We’ll take a look at simple instantiation and formatting styles as well as useful methods the class...
View ArticleIntroduction to Apache Pulsar
1. Introduction Apache Pulsar is a distributed open source Publication/Subscription based messaging system developed at Yahoo. It was created to power Yahoo’s critical applications like Yahoo Mail,...
View ArticleFormat ZonedDateTime to String
1. Overview In this quick tutorial, we’ll see how to convert a ZonedDateTime to a String. We’ll also look at how to parse a ZonedDateTime from a String. 2. Creating a ZonedDateTime First, we’ll start...
View ArticleRequest Method Not Supported (405) in Spring
1. Overview This quick article is focused on a common error – ‘Request Method not Supported – 405’ – that developers face while exposing their APIs for specific HTTP verbs, with Spring MVC. Naturally,...
View ArticleHTTPS using Self-Signed Certificate in Spring Boot
1. Overview In this tutorial, we’re going to illustrate step by step an example of enabling HTTPS in a Spring Boot application. We’ll generate a self-signed certificate and configure it in a sample...
View ArticleRemoving Elements from Java Collections
1. Overview In this quick tutorial, we’re going to talk about four different ways to remove items from Java Collections that match certain predicates. We’ll naturally also look at some of the caveats....
View ArticleLombok Builder with Default Value
1. Introduction In this quick tutorial, we’ll investigate how can we provide default values for attributes when using the builder pattern with Lombok. Make sure to check out our intro to Lombok as...
View ArticleWorking with Date Parameters in Spring
1. Introduction In this short tutorial, we’ll take a look at how to accept Date, LocalDate and LocalDateTime parameters in Spring REST requests, both at the request and application levels. 2. The...
View ArticleIntro to Apache Storm
1. Overview This tutorial will be an introduction to Apache Storm, a distributed real-time computation system. We’ll focus on and cover: What exactly is Apache Storm and what problems it solves Its...
View ArticleThreads vs Coroutines in Kotlin
1. Introduction In this quick tutorial, we’re going to create and execute threads in Kotlin. Later on, we’ll discuss how to avoid it altogether, in favor of Kotlin Coroutines. 2. Creating Threads...
View Article