简体   繁体   English

IntelliJ 没有 @NotBlank

[英]IntelliJ does't have @NotBlank

So im running my program and I need to setup @NotNull from import javaz.validation.constraints.NotBlank;所以我正在运行我的程序,我需要设置@NotNull from import javaz.validation.constraints.NotBlank; All there is一切都有

 @NonNull
    private final String firstName;

and import org.springframework.lang.NonNull;import org.springframework.lang.NonNull;

How do I install @NotNull or is @NonNull the same thing?我如何安装@NotNull或者@NonNull是一样的东西?

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.简短回答:存在细微差别,但这完全取决于您想要什么,因此您需要阅读我在上面链接的帖子或告诉我们更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM