springboot接收json数据

在这里插入图片描述
实体类:
@Table(name = “tb_spec_group”)
public class SpecGroup {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private Long cid;
private String name;
@Transient
private List params;
}
}
前端控制器:
在这里插入图片描述
注意:这里不能使用@RequestParam,这个注解不能够接收json数据

猜你喜欢

转载自blog.csdn.net/qq_37669050/article/details/104711680