Category: Java

OpenAPI v3 Swagger 0

OpenAPI 3.0 Documentation for Spring

The OpenAPI V3 specification is the successor to the original Swagger documentation. This article will show you how to configure your Spring App to autogenerate the API documentation for the API you are developing....

JUnit 5 and Maven 0

Setup and install JUnit 5 using Maven

Setting up JUnit 5 in a Maven project is very simple. JUnit pom.xml In your maven project, navigate to your pom.xml file and add the following lines: Trigger Maven or your IDE to import...

interfaces and abstract classes 0

Difference between Abstract Classes and Interfaces

There are key differences between an interface and abstract methods and this article will explain those details with examples. Interface An interface is a contract that an object agrees to when it implements the...

SOLID 0

SOLID Principles

The SOLID principles is an acronym for the five design principles in OOP Programming. Single Responsibility Principle A class should only have a single responsibility over a single part of the functionality provided by...

Java Map 0

Maps and HashMaps

The Map interface is an object that maps keys to values. Methods putIfAbsent() The putIfAbsent() method attempts to add a key-value pairing to the map if it is not already present. If the key...

Jackson ObjectMapper 0

Jackson ObjectMapper

The Jackson ObjectMapper is a JSON Serialization and Deserialization library for Java. Mapping a complete JSON string to a POJO JSON String to deserialize Java Entity Object Class: Deserialize JSON to Java Object Console...