数据库多数据源怎么配置

最简单的使用框架自配的,如mybatis-plus,mybatis-flex

https://baomidou.com/guides/dynamic-datasource/

如何自己实现?