问题
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