In this relatively short article, I will discuss an intriguing and noteworthy topic about collections in Java: why some standard Java collections cannot be heterogeneous. In other words, why they cannot contain objects of different types.
In Spring Boot applications, it’s not uncommon to configure a value representing a size in bytes, for example, a buffer size, a file size limit, etc. In this article, I will describe how to use the DataSize class provided by Spring Framework to configure and handle data size values.
In the previous article Spring Boot: configuring the Actuator “info” endpoint, I explained some fundamental concepts about configuring and using the “info” endpoint provided by Spring Boot Actuator. In this article, it’s time to see how to implement custom info contributors.
Logback is a known Java logging library and an alternative to the better-known log4j library. I already wrote about an “advanced” feature of logback in a previous article. In this article, I will provide a practical introduction so you can start quickly and easily with logback.
Actuator is a software module you can add to any Spring Boot project to expose many features for monitoring and managing the application. This article describes how to use and configure one of the essential features of Actuator, the “info” endpoint.
In this article, I am going to show you something a little fun, how to draw a nice heart shape using only two Bézier curves with the Java 2D API. This is also a good opportunity to explain some concepts about Bézier curves in an enjoyable way.
If you have been using Spring Boot for a while, sometimes you may have encountered a failure when launching an application. One common and frequent case is when the application is already running, and you try to re-run the application (or another application that uses the same server port). In this case, Spring Boot logs…
Spring Boot directly supports three well-known JSON binding libraries: Jackson, Gson, and JSON-B (note that the latter is, more precisely, a specification). JSON binding is typically used in REST web services, but you can use it in several other contexts. In this article, I will explain how to integrate these libraries in Spring Boot (mainly…
I often use logback in my personal/demo Java projects because it is easy to use and configure. Logback is also an implementation of the SLF4J API, so there is no need for an explicit binding artifact. In this article I talk about a very specific feature of logback, the implementation of property definers to define…
SLF4J (www.slf4j.org) is a logging “facade” library that is very popular among Java developers because it is used by many frameworks and libraries. SLF4J has recently been updated to version 2.0.x. In this article, I will explain the new features of SLF4J 2.x.