Field[] fields = TableMainAddVO.class.getDeclaredFields(); List<String> strList = new ArrayList<String>(); Arrays.stream(fields).forEach(f -> { if(f.isAnnotationPresent(ApiModelProperty.class)){ ApiModelProperty annotation = f.getAnnotation(ApiModelProperty.class); String value = annotation.value(); strList.add(value+":"+f.getName()); } });