Skip to content

Commit 9dcf03b

Browse files
committed
setValidators -> addValidators
1 parent d4714de commit 9dcf03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

note/spring-mvc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ private static final boolean javaxValidationPresent =
14011401
@InitBinder
14021402
public void initBinder(DataBinder dataBinder) {
14031403
dataBinder.setValidator(new SimpleModelValidator());
1404-
//如果有多个可以使用setValidators方法
1404+
//如果有多个可以使用addValidators方法
14051405
}
14061406
```
14071407

0 commit comments

Comments
 (0)