缺省的情况下,FloatConverter,IntegerConverter,LongConverter都是将null值转换成0,除非自己重新注册转换器: ConvertUtils.register(new FloatConverter(null), Float.class);
ConvertUtils.register(new IntegerConverter(null), Integer.class);
ConvertUtils.register(new LongConverter(null), Long.class);