IntelliJ does't have @NotBlank

ⅰ亾dé卋堺 提交于 2021-02-11 18:19:09

问题


So im running my program and I need to setup @NotNull from import javaz.validation.constraints.NotBlank; All there is

 @NonNull
    private final String firstName;

and import org.springframework.lang.NonNull;

How do I install @NotNull or is @NonNull the same thing?


回答1:


This should answer your question.

Short answer: there is a subtle difference, but it all depends on what you want, so you either need to read the post I've linked above or tell us more information.



来源:https://stackoverflow.com/questions/62626075/intellij-doest-have-notblank

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!