alibaba / alibaba/druid

Springboot 自定义 filter 无法被执行

Open
#2,249 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
28.2k
Forks
8.6k
PR merge metrics
No merged PRs in 30d

Description

在debug模式下看到testfilter 被加进FilterManager中, 但是其中的statementExecuteAfter方法总是不被执行
配置如下:spring.datasource.druid.filters=com.myprj.druid.TestFilter,stat,wall,log4j

Contributor guide

Open the contributing guide

Research direction

Start with the spring.datasource.druid.filters configuration and trace how TestFilter is added to FilterManager. Reproduce the reported setup in debug mode, follow the statementExecuteAfter execution path, and confirm that the custom filter method is invoked.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.