IntelliJ没有@NotBlank [英] IntelliJ does't have @NotBlank

查看:324
本文介绍了IntelliJ没有@NotBlank的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在运行我的程序,我需要从 import javaz.validation.constraints.NotBlank;设置 @NotNull 全部都有

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;

import org.springframework.lang.NonNull;

我如何安装 @NotNull @NonNull 是同一东西?

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

推荐答案

应该回答您的问题.

简短的回答:有一个细微的差别,但这都取决于您想要什么,因此您需要阅读我上面链接的帖子,或者告诉我们更多信息.

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.

这篇关于IntelliJ没有@NotBlank的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆