Class cls = Class.forName("com.chinaap.ttcp.v2.form.data.QueryBillDetailListData");
Field[] fields = cls.getDeclaredFields();
if(fields.length > 0 ){
for (Field field : fields) {
field.setAccessible(true);
/*获取swagger注释中文*/
ApiModelProperty apiModel = field.getAnnotation(ApiModelProperty.class);
bodyField.put(field.getName(), apiModel.value());
// field.getType().getName();
}
}
bean