Skip to content

Commit

Permalink
Update parameter-validation.md (#2811)
Browse files Browse the repository at this point in the history
增加在jdk17环境启动下启用客户端参数校验的说明
  • Loading branch information
shj1995 committed Sep 15, 2023
1 parent ae16715 commit 0488cc7
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -168,6 +168,8 @@ public interface ValidationService {

> **Dubbo 默认支持 hibernate-validator 版本 <=6.x,若使用 hibernate-validator 7.x 版本,请将 validation 参数声明为 jvalidationNew**
> 如果需要启动客户端验证,并且使用jdk17,择需添加jvm启动参数`--add-opens java.base/java.lang=ALL-UNNAMED`做兼容处理.
### 验证异常信息

```java
Expand Down Expand Up @@ -200,4 +202,4 @@ public class ValidationConsumer {
}
```

> **验证方式可扩展,扩展方式参见开发者手册中的 [验证扩展](../../../reference-manual/spi/description/validation)**
> **验证方式可扩展,扩展方式参见开发者手册中的 [验证扩展](../../../reference-manual/spi/description/validation)**

0 comments on commit 0488cc7

Please sign in to comment.