Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Spring data specify datasource for repository

$
0
0

I have a few spring data repositories for redis.We are in middle of transition to new redis server. To make it smooth, I need to write data to the old and new redises simultaneously.So I need to have two sets of CRUD repositories in runtime, each of them should use different datasource (redis template).I've found an example to introduce a few datasources in Spring app, and use JPA.But I was wondering if it's possible to specify a datasource for the Spring data repository.Thanks!


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>