Java实体类
public class HouseResult {
private Integer id;
@ApiModelProperty(value = "管理该房源的中介编号")
private Integer aId;
@ApiModelProperty(value = "小区编号")
private Integer cId;
@ApiModelProperty(value = "区域编号")
private Integer rId;
Controller
@Data
@AllArgsConstructor
@NoArgsConstructor
public RespBean addHouse(@RequestBody HouseResult house){
System.out.println(house);
// House house1 = StrUtils.parseHouse(house);
// houseService.save(house1);
return RespBean.success("asd");
}
前端通过axios发送请求form表单数据
form:{
aId:0 // 这么写后台收不到,
aid:0 //后台可以收到
}