Spring Data JPA

Spring Boot JpaRepository Example

Learn to Spring Data JPA module and work with JpaRepository interface for performing the CRUD operations in underlying databases in a Spring Boot application.

Spring Boot Redis with Lettuce vs Jedis: Setup and Pooling

Connect Spring Boot 4 to Redis with Lettuce or Jedis. Compare the two clients, set the spring.data.redis properties and the commons-pool2 pool, use RedisTemplate, StringRedisTemplate and a @RedisHash repository, and test with Testcontainers.

Redis Pub/Sub with Spring Boot Data

Learn to use Redis Pub/Sub with Spring Boot Data, and configure the message publishers and subscribers (listners) for a given channel topic.

Configure Multiple DataSources in Spring Boot

In this post, we will learn how to configure and manage multiple datasources using properties configuration and defining custom beans using Java annotations in Spring Boot. Note that this requirement differs from having separate datasource in test, dev and prod environments. Here, we are using multiple datasources in the same …

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.