07 2023 档案

摘要:最近在使用fastjson的`JSONObject.toJSONString()`方法将bean对象转为字符串的时候报如下错误: com.alibaba.fastjson.JSONException: write javaBean error, fastjson version 1.2.58, class com.sun.proxy.$Proxy395, fieldName : 0 Caused by: java.lang.NullPointerException: null 阅读全文
posted @ 2023-07-29 22:32 shanml 阅读(2591) 评论(0) 推荐(0) 编辑
摘要:@RequestBody注解可以用于POST请求接收请求体中的参数,使用方式如下: ``` java @Controller public class IndexController { @PostMapping(value = "/submit", produces = MediaType.APP 阅读全文
posted @ 2023-07-21 23:16 shanml 阅读(1242) 评论(0) 推荐(2) 编辑

点击右上角即可分享
微信分享提示