下文笔者讲述SpringBoot中@JsonProperty不生效的相关简介说明
@JsonProperty不生效问题解决
在springboot项目中 反序列化的时候@JsonProperty不生效
处理方法
必须使用正确的包
才能解析@JsonProperty注解
我们只需导入对应的包即可,如:
Jackson对应的注解:@JsonProperty
FastJson对应的注解: @JsonFiled
下文笔者讲述SpringBoot中@JsonProperty不生效的相关简介说明
@JsonProperty不生效问题解决
在springboot项目中 反序列化的时候@JsonProperty不生效
处理方法
必须使用正确的包
才能解析@JsonProperty注解
我们只需导入对应的包即可,如:
Jackson对应的注解:@JsonProperty
FastJson对应的注解: @JsonFiled