Springboot中@RequestBody接收的对象中包含大写字母开头的参数,无法接收到参数值的问题解决

 

Java接收对象中包含以上参数,无法接收参数值,可以使用@JsonProperty注解

@JsonProperty注解的使用需要jackson的maven依赖

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

推荐阅读:

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

@JsonProperty注解介绍  https://www.cnblogs.com/toSeeMyDream/p/7885015.html

 
 
 

相关文章:

  • 2021-12-08
  • 2021-12-02
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
猜你喜欢
  • 2022-12-23
  • 2021-05-07
  • 2021-06-15
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
相关资源
相似解决方案