-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
过滤器不生效 #1477
Comments
是不是SPI配置文件写漏了呢? |
我在resources文件夹下新建了META-INF/services/org.apache.servicecomb.common.rest.filter.HttpServerFilter 文件,里面以包名+类名的全路径方式指定了我的过滤器,过滤器类实现了HttpServerFilter,并且在afterReceiveRequest()方法中打印一行控制台信息。 微服务运行后收到请求,日志中有如下信息: |
配置正确一般日志会打印loadSortedService,然后下面有你的类的名字。没有的话,看看services文件的名称,目录名称等是不是有误,导致JDK没有加载到对应的文件。 |
重新配置了过滤器文件,过滤器生效了,谢谢 |
怎么重新配置的 |
按照官方指导的spi方式配置了过滤器,但是没有生效,请问有什么原因?也没有报任何的错误
The text was updated successfully, but these errors were encountered: