Parameter object Springboot in @RequestBody received contains uppercase letter can not solve the problem received parameter values

 

Java receiving object contains the above parameters, parameter values ​​can not be received, you can use @JsonProperty comment

Use @JsonProperty annotation needs jackson's dependence maven

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.5.3</version>
</dependency>

Recommended reading:

https://blog.csdn.net/weixin_43483983/article/details/99729297

@ JsonProperty comment introduce   https://www.cnblogs.com/toSeeMyDream/p/7885015.html

 
 
 

Guess you like

Origin www.cnblogs.com/mxh-java/p/12070469.html