Map Serialization and Deserialization with Jackson
1. Overview In this article, we’ll look at serialization and deserialization of Java maps using Jackson. We’ll illustrate how to serialize and deserialize Map<String, String>, Map<Object,...
View ArticleA CLI with Spring Shell
1. Overview Simply put, the Spring Shell project provides an interactive shell for processing commands and building a full-featured CLI using the Spring programming model. In this article, we’ll...
View ArticleImplementing a Custom Spring AOP Annotation
1. Introduction In this article, we’ll implement a custom AOP annotation using the AOP support in Spring. First, we’ll give a high-level overview of AOP, explaining what it is and its advantages....
View ArticleRatpack Google Guice Integration
1. Overview In our earlier article, we’ve shown how building scalable applications using Ratpack looks like. In this tutorial, we will discuss further on how to use Google Guice with Ratpack as...
View ArticleIntroduction to Vert.x
1. Overview In this article, we’ll discuss Vert.x, cover its core concepts and create a simple RESTfull web service with it. We’ll start by covering the foundation concepts about the toolkit, slowly...
View ArticleCreate a Custom FailureAnalyzer with Spring Boot
1. Overview A FailureAnalyzer in Spring Boot offers a way to intercept exceptions that occur during the startup of an application causing an application startup failure. The FailureAnalyzer replaces...
View ArticleList of In-Memory Databases
1. Overview In-memory databases rely on system memory as opposed to disk space for storage of data. Because memory access is faster than disk access, these databases are naturally faster. Of course,...
View ArticleHibernate Tips Book Excerpt: How to Map an Inheritance Hierarchy to One Table
1. Introduction Inheritance is one of the key concepts in Java. So, it’s no surprise that most domain models use it. But unfortunately, this concept doesn’t exist in relational databases, and you need...
View ArticleAn Intro to the Spring State Machine Project
1. Introduction This article is focused on Spring’s State Machine project – which can be used to represent workflows or any other kind of finite state automata representation problems. 2. Maven...
View ArticleSpring MVC Custom Validation
1. Overview Generally, when we need to validate user input, Spring MVC offers standard predefined validators. However, when we need to validate a more particular type input, we have the possibility of...
View ArticleCustom Information in Spring Boot Info Endpoint
1. Overview In this quick article, we’ll have a look at how to customize the Spring Boot Actuators’ /info endpoint. Please refer to this article to learn more about actuators in Boot and how to...
View ArticleCustom Scope in Spring
1. Overview Out of the box, Spring provides two standard bean scopes (“singleton” and “prototype”) that can be used in any Spring application, plus three additional bean scopes (“request”, “session”,...
View ArticleGuide to Reactive Microservices Using Lagom Framework
1. Overview In this article, we’ll explore the Lagom framework and implement an example application using a reactive microservices driven architecture. Simply put, reactive software applications rely...
View ArticleIntroduction to JaVers
1. Overview In this article, we will be looking at the JaVers library. This library helps programmers examine and detect changes in the states of simple Java objects. When we use mutable objects in...
View ArticleJava Web Weekly, Issue 171
Here we go… 1. Spring and Java >> The Java in 2017 Survey [docs.google.com] I’m running my yearly Java “State of the Union” survey for 2017. Please take a few seconds to vote. >> Memory...
View ArticleCucumber and Scenario Outline
1. Introduction Cucumber is a BDD (Behavioral Driven Development) testing framework. Using the framework to write repetitive scenarios with different permutations of inputs/outputs can be quite...
View ArticleFlattening Nested Collections in Java
1. Overview In this quick article, we’ll explore how to flatten a nested collection in Java. 2. Example of a Nested Collection Suppose we have a list of lists of type String....
View ArticleCheck If a Number Is Prime in Java
1. Introduction First, let’s go over same basic theory. Simply put, a number is prime if it’s only divisible by one and by the number itself. The non-prime numbers are called composite numbers. And...
View ArticleJasperReports with Spring
1. Overview JasperReports is an open source reporting library that enables users to create pixel-perfect reports that can be printed or exported in many formats including PDF, HTML, and XLS. In this...
View ArticleJava in 2017 Survey Results
We've been running the "State of Java" survey for many year now - to get a good read of the state of the Java ecosystem. Last year, 2250 Java developers decided to take the time to answer the...
View Article