fishpro / spring-boot-study

about learning Spring Boot via examples. 基于 spring boot 2.x 的学习教程简洁易懂
MIT License
297 stars 223 forks source link

兄弟你动态数数据源项目里面DynamicDataSourceConfig类里面的 DynamicDataSource哪里来的啊 #1

Open nanjunyu opened 5 years ago

nanjunyu commented 5 years ago

兄弟你动态数数据源项目里面DynamicDataSourceConfig类里面的 DynamicDataSource哪里来的啊,弄了半天卡在这了。 相关链接:https://www.cnblogs.com/fishpro/p/spring-boot-study-dynamicdb.html#commentform

https://github.com/fishpro/spring-boot-study/blob/master/spring-boot-study-dynamicdb/src/main/java/com/fishpro/dynamicdb/datasource/config/DynamicDataSourceConfig.java

第34行

fishpro commented 4 years ago

抱歉,好久没有上来看,就在同级别config文件夹中 https://github.com/fishpro/spring-boot-study/blob/master/spring-boot-study-dynamicdb/src/main/java/com/fishpro/dynamicdb/datasource/config/DynamicDataSource.java