Warning: “The type WebMvcConfigurerAdapter is deprecated” 1. Introduction In this quick tutorial, we’ll have a look at one of the warnings we may see when working with a Spring 5.x.x version, namely the one referring to the deprecated WebMvcConfigurerAdapter class. We’ll see why this warning happens and how to handle… Continue Reading web-mvc-configurer-adapter-deprecated

Batch Insert/Update with Hibernate/JPA 1. Overview In this tutorial, we’ll look at how we can batch insert or update entities using Hibernate/JPA. Batching allows us to send a group of SQL statements to the database in a single network call. This way, we can optimize the network and memory usage… Continue Reading jpa-hibernate-batch-insert-update

Error Handling for REST with Spring 1. Overview This article will illustrate how to implement Exception Handling with Spring for a REST API. We’ll also get a bit of historical overview and see which new options the different versions introduced. Before Spring 3.2, the two main approaches to handling exceptions… Continue Reading exception-handling-for-rest-with-spring

Wrapper Classes in Java 1. Overview As the name suggests, wrapper classes are objects encapsulating primitive Java types. Each Java primitive has a corresponding wrapper: boolean, byte, short, char, int, long, float, double  Boolean, Byte, Short, Character, Integer, Long, Float, Double These are all defined in the java.lang package, hence we… Continue Reading java-wrapper-classes

Spring Data Composable Repositories 1. Introduction When modeling a real-world system or process, domain-driven design (DDD) style repositories are a good option. For this very purpose, we can use Spring Data JPA as our data access abstraction layer. If you are new to this concept check out this introductory tutorial to… Continue Reading spring-data-composable-repositories

Check If a String Contains All The Letters of The Alphabet 1. Overview In this tutorial,  we’ll see how to check if a String contains all the letters of the alphabet or not. Here’s a quick example: “Farmer jack realized that big yellow quilts were expensive.” – which does actually contain all… Continue Reading java-string-contains-all-letters