public static String getProperty ( Object bean , String field ) { Object property = PropertyUtils . getProperty ( bean , field ) ; if ( property == null ) { return "null" ; } return property . toString ( ) ; }
Get bean s property value and maps to String