Java
-
Jackson for JSON marshalling/unmarshalling
What is Jackson? Jackson is a high-performance JSON processor for Java, widely recognized for its ease of use, efficiency, and extensive features. It provides a suite of tools for parsing and generating JSON,…
-
Spring Boot Actuator
Spring Actuator is a powerful tool within the Spring Boot ecosystem that enhances application observability and management by leveraging Micrometer, a vendor-neutral application façade. Here’s why it’s particularly beneficial: Exposing Metrics and Application…
-
Understanding the Spring bean lifecycle
In the Spring Framework, the lifecycle of a Spring bean is orchestrated by the Inversion of Control (IoC) container. This lifecycle is important to understand for any Java developer working with Spring, as…
-
Enumerated Types
Enumerated types, also known as enums, in Java are a special data type that enables a variable to be in a restricted set of named values. The enum keyword offers a way to…
-
Search Algorithms
Linear Search Given an array of n elements, find a specific element (x) in the array and return it’s position. Binary Search Binary search tackles the problem of locating a specific element within…
-
Avoid NullPointerExceptions with Optional
Optionals are commonly used to prevent null references and NullPointerExceptions in Java code. An Optional is a container object which may or may not have a value. To verify if a value exists,…
-
Working with Queues in the Collections Framework
The queue data structure can be useful in algorithms where you need to process data in a sequential order. A queue contains the elements in the order they were added, that is, elements…
-
Spring Aspect Oriented Programming
Aspecting in Spring refers to re-usable blocks of code that are injected into the application at runtime and can be a powerful tool for modularizing and adding behaviour to solve cross-cutting concerns such…
-
Spring Authorization Server
This article is based on Spring Framework 6. In a recent blog post on the Spring website, Steve Riesenberg announced that the Spring Authorization Server is now available on Spring Initializr. This means that developers can…
-
Lamdas
Lambdas are a way of using functional programming to develop concise and powerful Java code since Java version 8. Lambdas implement functional interfaces using the @FunctionalInterface annotation which will contain a single method…