Search code examples
javaspring-bootspring-jdbc

Read and Write datasources in one spring boot app


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?


Solution

  • This is what I was looking for https://web.archive.org/web/20231002211229/http://fedulov.website/2015/10/14/dynamic-datasource-routing-with-spring/