mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 03:01:53 +08:00
【修复】全局:移除 Druid 广告逻辑未按照期望执行
This commit is contained in:
parent
f381568f6b
commit
290a981cae
@ -23,7 +23,7 @@ public class YudaoDataSourceAutoConfiguration {
|
|||||||
* 创建 DruidAdRemoveFilter 过滤器,过滤 common.js 的广告
|
* 创建 DruidAdRemoveFilter 过滤器,过滤 common.js 的广告
|
||||||
*/
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnProperty(name = "spring.datasource.druid.web-stat-filter.enabled", havingValue = "true")
|
@ConditionalOnProperty(name = "spring.datasource.druid.stat-view-servlet.enabled", havingValue = "true")
|
||||||
public FilterRegistrationBean<DruidAdRemoveFilter> druidAdRemoveFilterFilter(DruidStatProperties properties) {
|
public FilterRegistrationBean<DruidAdRemoveFilter> druidAdRemoveFilterFilter(DruidStatProperties properties) {
|
||||||
// 获取 druid web 监控页面的参数
|
// 获取 druid web 监控页面的参数
|
||||||
DruidStatProperties.StatViewServlet config = properties.getStatViewServlet();
|
DruidStatProperties.StatViewServlet config = properties.getStatViewServlet();
|
||||||
|
Loading…
Reference in New Issue
Block a user