java对象任何一个属性都不为空
WechatActivationVo wechatActivationVo = new WechatActivationVo();
for (Field f : wechatActivationVo.getClass().getDeclaredFields()) {
f.setAccessible(true);
if (f.get(wechatActivationVo) == null || "".equals(f.get(wechatActivationVo).toString())) { //判断字段是否为空,并且对象属性中的基本都会转为对象类型来判断
throw new SysException("请求参数不能为空");
}