org.apache.commons.lang3.Validate

Validates.notBlank(user.getName(), "必须提供name");

猜你喜欢

转载自www.cnblogs.com/hahajava/p/9138294.html