Current location - Quotes Website - Personality signature - Dubbo service RPC call verified verification
Dubbo service RPC call verified verification
When we use SpringBoot, we usually use validation to verify. What about dubbo's rpc call? It's actually the same. But you need to turn on the verification. There are two ways to open it:

Maybe fat friends will have doubts. Validation = true for both service providers and service consumers are open parameter validation rules. What is the difference? Dubbo has built-in ValidationFilter filter, which realizes the function of parameter verification and can be used by service providers and service consumers. The effect is as follows:

When the actual project is used, at least the parameter verification function of the service provider should be turned on.

Excerpted from: /Spring-Cloud-Alibaba/Dubbo/? Open source code base