SpringBoot use @RequestBody not receive the parameters of the problem

First look at the issue:

postman

entity:

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Test{
    private Long id;
    private Integer ifCertification;
}

 Use @RequestBody always found ifCertification not receive parameters;

 Solution:

@JsonProperty (value = "xxx") (reason: because the inconsistent entity type and parameters of the incoming parameters, hump naming, and other issues after the increase in the annotation mapping, and parameter values ​​can be obtained entity class)

(Finish) 

Guess you like

Origin blog.csdn.net/qq_36850813/article/details/94628232