This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new f49d93f docs: Add parameter validation document (#1039)
f49d93f is described below
commit f49d93fd2287976c04969083a6bdb4fc707623f2
Author: 桔子 <[email protected]>
AuthorDate: Sun Jan 23 17:04:02 2022 +0800
docs: Add parameter validation document (#1039)
---
content/zh/docs/advanced/parameter-validation.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/content/zh/docs/advanced/parameter-validation.md
b/content/zh/docs/advanced/parameter-validation.md
index 9e97fe0..e2d23a6 100644
--- a/content/zh/docs/advanced/parameter-validation.md
+++ b/content/zh/docs/advanced/parameter-validation.md
@@ -153,6 +153,10 @@ public interface ValidationService {
<dubbo:service
interface="org.apache.dubbo.examples.validation.api.ValidationService"
ref="validationService" validation="true" />
```
+{{% alert title="提示" color="primary" %}}
+Dubbo 默认支持 hibernate-validator 版本 <=6.x,若使用 hibernate-validator 7.x 版本,请将
validation 参数声明为 jvalidatorNew
+{{% /alert %}}
+
## 验证异常信息
```java