org.apache.commons.beanutils.PropertyUtils和org.apache.commons.beanutils.BeanUtils

来源:互联网 发布:it解决方案模板 编辑:程序博客网 时间:2024/05/21 21:07

PropertyUtils.describe(query)  会将query里面字段是什么类型的转换成什么类型的

BeanUtils.describe(query)    会将query里面的字段类型变为String类型的  如果有字段类型为Integer那么会报java.lang.String cannot be cast to java.lang.Integer

0 0