zoukankan
html css js c++ java
springmvc-@RequestBody无法映射首字母大写的属性
@RequestBody可以将前台传入的json格式数据自动映射成对象,当如果属性的首字母大写,则会出现不能映射的情况,如:
private String ICCID;会出现映射失败的情况
解决办法:
1)属性推荐使用小写开头,符合java的开发规范;
2)实在要使用大写,可以@jsonProperty("ICCID")解决,如:
@JsonProperty("ICCID")
private String ICCID;
查看全文
相关阅读:
Spring Boot入门教程1、使用Spring Boot构建第一个Web应用程序
单点登录(SSO)的设计
.NET Core快速入门教程 5、使用VS Code进行C#代码调试的技巧
.NET Core快速入门教程 4、使用VS Code开发.NET Core控制台应用程序
.NET Core快速入门教程 3、我的第一个.NET Core App (CentOS篇)
.NET Core快速入门教程 2、我的第一个.NET Core App(Windows篇)
.NET Core快速入门教程 1、开篇:说说.NET Core的那些事儿
JAVA的8种基本数据类型
JVM
在coffeescript中声明和屏蔽模块变量
原文地址:https://www.cnblogs.com/taohaijun/p/11232085.html
最新文章
Python基础-04-字符串
Python基础-05-列表
Python基础-02-循环条件简单运用
Python基础-03-int类型
Python基础-01
10 迭代器与生成器
09 文件处理
07-08 函数式与内置函数
06 变量与递归函数
05 集合与函数
热门文章
02-04 运算符和基本数据类型以及常用选项
01 Python初识
python学习----8.14--re模块,subprocess模块
python学习----8.13-shelve-xml-configparser-hashlib
Python学习---8.10包的使用及loggin模块
Python学习---8.8
python学习--元组,字典,集合
python学习---列表
Python学习--模块
Python学习Day3
Copyright © 2011-2022 走看看