Closed pan3793 closed 5 years ago
so it is, but I dont know how to resolve it.. item datasource may need different filter
when use multi ds on ali original starter, it share fitlter beans first, and use reflection to create anothter filters which just in there own conf. it may be a solution.
the latest 2.2.3 version support global DruidConfiguration. However,I can not use filterBean, I use DatasourceFactory to create Datasource. If you have any idea, pls PR
Enviroment
JDK Version: Oracle JDK 1.8.0_162
SpringBoot Version: 2.0.5.RELEASE
Starter Version: 2.2.1 (lastest at 20180919)
Describe
configurations at spring.datasource.druid.filter.*** does not effect. Actually there do load and create filter beans, but those filter beans does not inject into druid datasource bean.
Analyze
both at alibaba original druid-starter & this dynamic stater, loading spring.datasource.druid.filter.*** conf first, but then,