Where is a nice javax.validation.constraints.Pattern annotation.
You can annotate the field with:
@Pattern(regexp = "^(?!\\s*$).+", message = "must not be blank")
This checks if field matches regex. The regex itself is something but not blank (see details here). It uses negative lookahead.