Spring Boot: Customize the Jackson ObjectMapper
1. Overview When using JSON format, Spring Boot will use an ObjectMapper instance to serialize responses and deserialize requests. In this tutorial, we'll take a look at the most common ways to...
View ArticleCollections.synchronizedMap vs. ConcurrentHashMap
1. Overview In this tutorial, we'll discuss the differences between Collections.synchronizedMap() and ConcurrentHashMap. Additionally, we'll look at the performance outputs of the read and write...
View ArticleJava Weekly, Issue 365
1. Spring and Java >> Troubleshooting Native Memory Leaks in Java Applications [blogs.oracle.com] Native out of memory error – different approaches to identify the native memory leaks and...
View ArticleIntegration Tests With Spring Cloud Netflix and Feign
1. Overview In this article, we're going to explore the integration testing of a Feign Client. We'll create a basic Open Feign Client for which we'll write a simple integration test with the help of...
View ArticleCharacter#isAlphabetic vs. Character#isLetter
1. Overview In this tutorial, we'll start by briefly going through some general category types for every defined Unicode code point or character range to understand the difference between letters and...
View ArticleJava Weekly, Issue 366
1. Spring and Java >> Do Loom’s Claims Stack Up? Part 1: Millions of Threads? [webtide.com] Gym membership and millions of loom virtual threads – evaluating the effect of GC and deep stacks on...
View ArticleDifference Between spring-boot:repackage and Maven package
1. Overview Apache Maven is a widely used project dependency management tool and project building tool. Over the last few years, Spring Boot has become a quite popular framework to build applications....
View ArticleNew Features in Java 11
1. Overview Oracle released Java 11 in September 2018, only 6 months after its predecessor, version 10. Java 11 is the first long-term support (LTS) release after Java 8. Oracle also stopped supporting...
View ArticleData Modeling with Apache Kafka
1. Overview In this tutorial, we'll venture into the realm of data modeling for event-driven architecture using Apache Kafka. 2. Setup A Kafka cluster consists of multiple Kafka brokers that are...
View ArticleJava 12 New Features
1. Introduction In this tutorial, we'll have a quick, high-level overview of some of the new features that came with Java 12. A full list of all new features is available in the official documentation....
View ArticleLearn JPA & Hibernate
Object-Relational Mapping (ORM) is the process of converting Java objects to database tables. In other words, this allows us to interact with a relational database without any SQL. The Java...
View ArticleDifference Between JSF, Servlet, and JSP
1. Introduction When developing any application, the selection of the right technology plays a significant role. However, the decision isn't always straightforward. In this article, we'll provide a...
View ArticleJava File Separator vs File Path Separator
1. Overview Different operating systems use different characters as file and path separators. When our application has to run on multiple platforms, we need to handle these correctly. Java helps us to...
View ArticleJava Weekly, Issue 367
1. Spring and Java >> AdoptOpenJDK Welcomes Dragonwell [infoq.com] Dragonwell joins AdoptOpenJDK – an OpenJDK distribution supporting coroutines and pre-warmup! >> Pattern Matching for...
View ArticleJackson: java.util.LinkedHashMap cannot be cast to X
1. Overview Jackson is a widely used Java library, which allows us to serialize/deserialize JSON or XML conveniently. Sometimes, we may encounter “java.lang.ClassCastException: java.util.LinkedHashMap...
View ArticleBinary Semaphore vs Reentrant Lock
1. Overview In this tutorial, we'll explore binary semaphores and reentrant locks. Also, we'll compare them against each other to see which one is best suited in common situations. 2. What Is a Binary...
View ArticleDifference Between REST and HTTP
1. Introduction Often times the terms REST and HTTP are used interchangeably. In this article, we'll look at what each term really means and why they are two different things. 2. What is REST? REST...
View ArticleUsing a Byte Array as Map Key in Java
1. Introduction In this tutorial, we'll learn how to use a byte array as a key in HashMap. Because of how HashMap works, we, unfortunately, can't do that directly. We'll investigate why is that and...
View ArticleDifference Between REST and HTTP
1. Introduction Often times the terms REST and HTTP are used interchangeably. In this article, we'll look at what each term really means and why they are two different things. 2. What is REST? REST...
View ArticleCharacter#isAlphabetic vs. Character#isLetter
1. Overview In this tutorial, we'll start by briefly going through some general category types for every defined Unicode code point or character range to understand the difference between letters and...
View Article