简体   繁体   中英

IntelliJ does't have @NotBlank

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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