最近的项目使用fastjson做报文解析,但使用默认的方法JSON.toJSONString或者JSONObject.toJSONString解析Java Bean时, 属性会被转为小写字母,之后通过在Java Bean的属性上加@JSONField(name = ‘NAME’)注解来定制fastjson解析出的属性名称可以改变这种调用默认方式产生的结果。
Created
September 15, 2017 07:53
-
-
Save regding/e55fda729c30a093f23afbf011e6a3e4 to your computer and use it in GitHub Desktop.
tips-2017-09-15
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment