chenchanglong1997 commented on issue #2503:
URL:
https://github.com/apache/servicecomb-java-chassis/issues/2503#issuecomment-899183610
> “不生效” 的含义是什么?能给一个具体例子吗?
public class Student {
@NotBlank
String name;
@NotNull
int age;
}
@RequestMapping(path = "/testNotBlank", method = RequestMethod.POST)
public void testNotBlank(@Validated @RequestBody Student student) {
} 使用@notnull是可以的,生成的swagger是必填属性,而notblank不行,并不是非必填属性
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]