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;

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

 

posted @ 2020-08-13 11:52  hoge  阅读(1724)  评论(0编辑  收藏  举报