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;
因為前端參數指定了名字,后端沒有與之對應的參數名: