Vue前端与后端交互故障:not marked as ignorable

1、not marked as ignorable 

前端json转成后端实体类的时候提示没有标记忽略;

解决:

// jackson json转bean忽略没有的字段 not marked as ignorable
@JsonIgnoreProperties(ignoreUnknown = true)
public class BaseModel implements Serializable {

  

2、@MappedSuperclass去掉后提示  No identifier specified for entity:加上就行了;

3、前端传值,后端接收到的实体类字段全是null;

因为前端参数指定了名字,后端没有与之对应的参数名:

www.beicaiduo.com
原文地址:https://www.cnblogs.com/hoge66/p/13495546.html