Dubbo support service downgraded?

Alibaba cloud Q & A 2022-02-13 07:56:05 阅读数:971

dubbo support service downgraded

Dubbo Support service degradation ?




Take the answer 1:

adopt dubbo:reference Set in mock=“return null”.mock The value of can also be changed to true, Then implement one in the same path as the interface Mock class , The naming rule is “ The name of the interface +Mock” suffix . And then in Mock Class to implement their own degradation logic


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130756031450.html