-
Core Java
Convert Short to Byte Array
1. Introduction Converting a short value to a byte array is a common task when dealing with binary data. In…
Read More » -
Core Java
MapStruct With Inheritance Examples
1. Introduction MapStruct is an open-source, compile-time code generator, and annotation processor. It simplifies the implementation of mappings between different…
Read More » -
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 » -
Enterprise Java
How to Test a Spring AOP Aspect
1. Introduction Aspect-Oriented Programming (AOP) is one of programming paradigms that separates cross-cutting concerns as aspects. It complements Object-Oriented Programming…
Read More » -
Core Java
Lombok Constructor Annotations Example
1. Introduction Lombok is an open-source Java library that generates getter, setter, toString, equals, hashCode, and constructors automatically to reduce…
Read More » -
Core Java
Read and Write JSON to File with GSON
1. Introduction Using GSON to read and write json to file is easy with the fromJson and toJson APIs. GSON…
Read More » -
Java
Jackson Serialize and Deserialize LocalDate Example
1. Introduction Creating a custom serializer and deserializer via the Jackson library is a common task in Java applications. The…
Read More » -
Core Java
Custom Field Name with @JsonProperty
1. Introduction Custom field name with @JsonProperty is very useful when mapping Java fields to JavaScript Object Notation (JSON) properties…
Read More » -
Core Java
Jackson and Lombok Examples
1. Introduction Jackson is an open-source java library for processing JSONs. It deserializes a JSON string into a Plain Old…
Read More »