-
Enterprise Java
Spring MockMVC Get JSON As Object
1. Introduction Spring MockMVC is the Spring MVC testing framework which performs Spring MVC request handling and response asserting via…
Read More » -
Core Java
Casting Maps into Complex Objects in Java
In Java, there is often a need to convert a Map to a complex object (POJO – Plain Old Java…
Read More » -
Core Java
Implement Elvis Operator in Java 8
In Java 8, the Elvis operator (often written as ?: in Groovy and Kotlin) is not available as a built-in…
Read More » -
Core Java
Choosing the Right Java ORM for Your Project
Java applications often interact with relational databases to store and retrieve data. This can involve writing tedious and error-prone SQL…
Read More » -
Core Java
Moshi java.time.LocalDate requires explicit JsonAdapter
Let us delve into understanding why Moshi java.time.LocalDate requires an explicit JsonAdapter to be registered. 1. Introduction Moshi is a…
Read More » -
Core Java
Optimizing Java Applications with Thread Dump Analysis
Java applications, like any complex software, can suffer from performance degradation. This can manifest as slow response times, application freezes,…
Read More » -
Core Java
Mapping Enums and Strings with MapStruct
MapStruct is a Java annotation processor that streamlines the implementation of mappings between Java beans, including complex scenarios such as…
Read More » -
Core Java
Java Stream mapMulti() Example
With the release of Java 16, several new features and enhancements were introduced. One such feature is the mapMulti() method…
Read More »