Dubbo can use filter to implement a filter similar to the Tomcat filter
Realize 1. Interface request time monitoring. 2. Print input/output log (the output log is determined by the application itself)
An error occurred during the configuration
No such extension consumerStaticFilter for filter/com.alibaba.dubbo.rpc.Filter at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)
Ask experienced students in the company to know the reason
When configuring & lt; dubbo:provider filter=”DubboExceptionFilter”>& lt;/ dubbo:provider>
The value of dubboexceptionfilter is not a spring bean. Instead, the following file contents need to be configured in the meta-inf/Dubbo/com.alibaba.dubbo.rpc.filter file:
DubboExceptionFilter=com.xxx.common.DubboRequestFilter
Create another related type and implement the com.alibaba.dubbo.rpc.filter interface
public DubboRequestFilter implements com.alibaba.dubbo.rpc.Filter{ }
This mechanism is the Java Service provider interface, Java specification. In this way, it is not necessary to configure a complete class during configuration
Similar Posts:
- [Solved] Dubbo Error: No provider available for the service xxx from registry localhost:9090
- Idea Error: No provider available from registry 127.0.0.1:2181 for service
- [Solved] SpringBoot Startup Error: is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
- SSM Project Error: java.sql.SQLException: Access denied for user ‘????…§’@’localhost’ (…
- cause: Fail to decode request due to: RpcInvocation [How to Solve]
- [Solved] Dubbo Project Service Startup Locally Error: org.apache.dubbo.remoting.remotingexception: client (URL: dubbo://192.168.56.1:20882
- [Solved] Spring Cloud Gateway Startup Error: Parameter 0 of method modifyRequestBodyGatewayFilterFactory in…
- How to Solve Error: Preflight response is not successful
- [Solved] Dependency injection exception: org.springframework.beans.factory.UnsatisfiedDependencyException