Annotations from javax.validation.constraints not working

后端 未结 15 1350
广开言路
广开言路 2020-11-28 06:23

What configuration is needed to use annotations from javax.validation.constraints like @Size, @NotNull, etc.? Here\'s my code:

15条回答
  •  一整个雨季
    2020-11-28 06:31

    If you are using lombok then, you can use @NonNull annotation insted. or Just add the javax.validation dependency in pom.xml file.

提交回复
热议问题