Spring cache abstraction using Redis

1. Overview

This post will focus on integrating the Redis with the Spring Boot application to leverage the declarative annotation based caching support provided by the Spring cache abstraction.

Using Hibernate SessionFactory in Spring Boot App

To autowire Hibernate SessionFactory in the Spring Boot application, the SpringSessionContext - implementation of the Hibernate’s CurrentSessionContext interface - can be used.

Loading Multiple Version of the Same Class

There comes a time we are forced to use multiple version of a library in the project. The Java system classloader will load a specific class only once. To load different implementation of a class reside in different versions of JAR file, we can make use of java.net.URLClassLoader.

Using Multiple DataSource In Spring Boot App

1. Overview

Spring Boot will load properties from the application.properties file which resides in the application class path and add them to the Spring Environment.