1. mybatis insert时返回主键
<insert id="save" parameterType="xx" useGeneratedKeys="true" keyProperty="id">
2. postman导入浏览器请求
3. 自定义header规范
通常以x-开头
4.表示该类实例化的对象里,值为null的字段不参与序列化 @JsonInclude(JsonInclude.Include.NON_NULL)
1. mybatis insert时返回主键
<insert id="save" parameterType="xx" useGeneratedKeys="true" keyProperty="id">
2. postman导入浏览器请求
3. 自定义header规范
通常以x-开头
4.表示该类实例化的对象里,值为null的字段不参与序列化 @JsonInclude(JsonInclude.Include.NON_NULL)