Open liuhaozzu opened 6 years ago
spring.datasource.druid.filters=stat,wall,log4j ...
is default filter,if config custom filter you can use spring.datasource.druid.filter.*
, detail see doc : https://github.com/alibaba/druid/tree/master/druid-spring-boot-starter#%E5%A6%82%E4%BD%95%E9%85%8D%E7%BD%AE-filter
com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper#addStatFilter
work for spring.datasource.druid.filter.*
property.
see #2507
problem: it seems that the spring.datasource.filters property can't be autowired. it's very strange that the filters is autowired by this way:
com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper#addStatFilter
... Why didn't we get it directly? It's seems that the way to config the sql monitor has been changed. Where can I find the wiki of this part?ps: affected version: