@RequestBody(属性入参不一致,忽略不认识属性)

@RequestBody,忽略不认识的属性:
    @JsonIgnoreProperties(ignoreUnknown = true)


@RequestBody,属性名和json中不一致:
    @JsonProperty(value = "Name")  

猜你喜欢

转载自blog.csdn.net/xx897115293/article/details/108280802