@ResponseBody注解自动将某些字符大写转换为小写,如pId的序列化为pid 返回到前端的属性名大写转换为小写都可以添加@JsonProperty注解解决,注解标注的名称就是返回结果的名称 @JsonProperty("pId") private String pId;