@Retention(value=RUNTIME) @Target(value=FIELD) public @interface NotBlank
If you just wish to require that the value be non-empty use NotEmpty instead.
NotEmpty
Copyright © 2012–2017. All rights reserved.