Spring Data

Related Tags

Tutorials

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.

Spring AbstractRoutingDataSource Example

AbstractRoutingDataSource is a very useful feature if we have a design which permits multiple databases based on certain criteria which may change for each user request. An example can be when we can use a particular database when the user belongs to a certain locale and switch to another locale …

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.