当前位置:网站首页>@RequestBody修饰的对象属性大小写映射问题
@RequestBody修饰的对象属性大小写映射问题
2022-04-22 18:58:00 【夏夜里的晚风。】
@RequestBody注解的属性值映射,是区分大小写的。
如前端传的属性名为NAME,后端对象属性名为name , 这样是无法映射值的。
解决办法:
在对象的属性上加注解即可
@JsonProperty("NAME")
private String name;
版权声明
本文为[夏夜里的晚风。]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_42488402/article/details/118151491
边栏推荐
- 【无标题】2022年煤矿防突考试练习题及模拟考试
- 漂亮舒服的KN95口罩,防护能力也很强
- Take you to understand the principle of highly flexible spark architecture
- Pycharm 配置 Conda,国内使用正确的镜像源地址
- Simple application of tablayout + viewpager2 + fragment
- Server side password encryption
- There are so many operation and maintenance tools, which one to choose? Follow me for three seconds
- 模块代码的类型描述文件
- 小型LED屏/数字闹钟显示屏/LED广告牌/温度数字显示器等LED数码管显示驱动IC-VK1640/1640B SOP28/SSOP24封装
- 可以惊艳你的登录网页
猜你喜欢

C#与 Halcon 联合编程

TypeScript中的命名空间使用

系统分析师-论文写作 框架搭建

Introduction to ribbon of microservice load balancer
![[Luogu] p2372 yyy2015c01 challenge perimeter (BFS)](/img/80/cae4f93f5432450469a07fb6e6e7fc.png)
[Luogu] p2372 yyy2015c01 challenge perimeter (BFS)

How nodejs prevents XSS attacks

Nat. Commun. | Neural coding framework for learning generation model

Misuse of redis cache string

Rhce ansible

原来,这才是开发者打开世界读书日的正确姿势
随机推荐
2019-12-07 wav audio cutting and merging
运维工具那么多,选择哪个好? 跟着我3秒搞定
描述文件中的全局类型
漂亮舒服的KN95口罩,防护能力也很强
Some problem records using rectclerview
Micro star small aircraft performance monitoring settings
2019-11-19 solve the problem that go test executes a single test file and prompts undefined
What does %[^\n] mean in C?
Simple implementation of linear regression
SQL命令 DISTINCT
ReadLine analysis log
原来,这才是开发者打开世界读书日的正确姿势
System Analyst - paper writing framework construction
乌国家安全与国防委员会秘书:目前不可能恢复乌克兰的核地位
Redis缓存之String的滥用
[best practice] patrol item: turn on URL authentication in content distribution network (CDN)
[proteus simulation] 51 single chip microcomputer 8-way actuator inching ± 90 ° inching control
Secretary of the national security and Defense Commission of Ukraine: it is impossible to restore Ukraine's nuclear status at present
Daily AI frontier term: Green AI
What are the advantages of enterprise communication software compared with other communication software