Skip to content

Commit

Permalink
Update service-downgrade.md (#2598)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody committed May 18, 2023
1 parent 44ff8de commit f23791e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ weight: 3
以服务方法的维度设置规则,设置返回模拟数据,动态启用/禁用规则


> 注意事项
{{% alert title="注意事项" color="primary" %}}

Dubbo 启动时会检查配置,当 mock 属性值配置有误时会启动失败,可根据错误提示信息进行排查

- 配置格式错误,如 `return+null` 会报错,被当做 mock 类型处理,`return` 后面可省略不写或者跟空格后再跟返回值
- 类型找不到错误,如自定义 mock 类、throw 自定义异常,请检查类型是否存在或是否有拼写错误
- 类型找不到错误,如自定义 mock 类、throw 自定义异常,请检查类型是否存在或是否有拼写错误
{{% /alert %}}

0 comments on commit f23791e

Please sign in to comment.