I want to have read and write datasources for replication purposes in spring boot app. Are there any examples on how to implement this behavior?
Asked
Active
Viewed 2,496 times
0
-
I want to have 2 separate data sources which I'll be able to use for different operation(read and write) – Alex Oct 06 '17 at 14:47
2 Answers
0
This could help you Spring Boot Configure and Use Two DataSources
also you could take a look on this blog

Community
- 1
- 1

Ahmad Abdulaziz
- 87
- 1
- 8
-
I didn't find how I can choose between datasources for different methods. – Alex Oct 06 '17 at 16:56
0
This is what I was looking for http://fedulov.website/2015/10/14/dynamic-datasource-routing-with-spring/

Alex
- 1,940
- 2
- 18
- 36