How to configure multiple datasources in Spring Data JDBC?

为君一笑 提交于 2021-02-08 09:36:06

问题


I'm trying to replace some projects to use Spring Data JDBC instead of using JdbcTemplate.

Now, I'd like to use it for multiple DataSources, how can I configure it in Spring Data JDBC?


回答1:


There is currently no support for working with two or more DataSources. You'd have to manually redo what the JdbcRepositoryFactoryBean does.



来源:https://stackoverflow.com/questions/49914310/how-to-configure-multiple-datasources-in-spring-data-jdbc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!