Annotation Interface NotEmpty


@Target(FIELD) @Retention(RUNTIME) public @interface NotEmpty
Validates that a String config value is not null or empty (after trimming). If the value is empty, it is reset to the field's default value and a warning is logged.

验证字符串配置值不为null或空(去除首尾空格后)。如果值为空,将重置为字段默认值并记录警告。

See Also: