Spring Security 5 for Reactive Applications 1. Introduction In this article, we’ll explore new features of the Spring Security 5 framework for securing reactive applications. This release is aligned with Spring 5 and Spring Boot 2. In this article, we won’t go into details about the reactive applications themselves, which… Continue Reading spring-security-5-reactive

XStream User Guide: Converting Objects to XML 1. Overview In this tutorial, we’ll learn how to use the XStream library to serialize Java objects to XML. 2. Features There are quite a few interesting benefits to using XStream to serialize and deserialize XML: Configured properly, it produces very clean XML… Continue Reading xstream-serialize-object-to-xml

Jackson Support for Kotlin 1. Overview In this tutorial, we’ll discuss the Jackson support for Kotlin. We’ll explore how to serialize and deserialize both Objects and Collections. We’ll also make use of @JsonProperty and @JsonInclude annotations. 2. Maven Configuration First, we need to add the jackson-module-kotlin dependency to our pom.xml:… Continue Reading jackson-kotlin

Guide to MapDB 1. Introduction In this article, we’ll look at the MapDB library — an embedded database engine accessed through a collection-like API. We start by exploring the core classes DB and DBMaker that help configure, open, and manage our databases. Then, we’ll dive into some examples of MapDB data structures that… Continue Reading mapdb

Guide to JAXB 1. Introduction This is an introductory article on JAXB (Java Architecture for XML Binding). First, we’ll show how to convert Java objects to XML and vice-versa, and then we’ll focus on generating Java classes from XML schema and vice-versa by using JAXB-2 Maven plugin. 2. Overview JAXB… Continue Reading jaxb

Hamcrest Collections Cookbook 1. Introduction This cookbook illustrates how to make use of Hamcrest matchers to work with and test collections. The format of the cookbook is example focused and practical – no extraneous details and explanations necessary. First, let’s do a quick static import to cover most of the… Continue Reading hamcrest-collections-arrays

Spring MVC and the @ModelAttribute Annotation 1. Overview One of the most important Spring-MVC annotations is the @ModelAttribute annotation. The @ModelAttribute is an annotation that binds a method parameter or method return value to a named model attribute and then exposes it to a web view. In the following example,… Continue Reading spring-mvc-and-the-modelattribute-annotation