Wesley13 Wesley13
2年前
java后台接收json数据,报错com.alibaba.fastjson.JSONObject cannot be cast to xxx
  从前台接收json封装的list数据,在后台接收时一直报错,com.alibaba.fastjson.JSONObjectcannotbecasttoxxx,  使用这种方式接收可以接收1@RequestMapping(value"/insertUser",methodRequestMethod.POST)
Easter79 Easter79
2年前
springboot整合fastJson遇到重定向问题
通过网上教程使用springboot整合fastJson后遇到页面重定向问题(使用的springboot版本是2.0.2.RELEASE,其他的版本可能不会出现以下问题),如下图:!(https://oscimg.oschina.net/oscnet/5f860c56a7b841bd9e4326b8d0eeb4fd741.png)我的项目结构如
Wesley13 Wesley13
2年前
java 客户端发起http请求2
客户端请求方式一,如果数据类型为 xwwwformurlencoded用到的jsonjar包为gradle('com.alibaba:fastjson:1.2.38',)那么对应的代码片段为:valurl"http://www.unionpayintl.com/cardholderServ/serviceCenter/
Stella981 Stella981
2年前
Fastjson 最新高危漏洞来袭!
点击上方蓝色字体,选择“设为星标”优质文章,及时送达!(https://oscimg.oschina.net/oscnet/29b67f75a2324a679c170e40225a7eee.jpg)来源| https://www.anquanke.com/post/id/2070290x01漏洞背景2020年05月
Stella981 Stella981
2年前
Dubbo 2.7.7 发布,FastJson 升级了!
作者:局长www.oschina.net/news/115796/dubbo277releasedApacheDubbo2.7.7已发布,这是一款高性能、轻量级的开源Java RPC(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fmp.weixin.
Easter79 Easter79
2年前
Tomcat 又爆出高危漏洞!!Tomcat 8.5 ~10 中招…
开源界最近很热闹啊,各个主流软件或框架漏洞频发,比如像Struts2、FastJSON、Dubbo、Redis、Tomcat等都存在各种各样的漏洞。不要使用含有漏洞的组件每次也都被评为OWASP10大安全漏洞之一。光这半年以来,栈长知道的,通过公众号Java技术栈发布的就有Dubbo、FastJSON、Tomcat:2020年06
Stella981 Stella981
2年前
Fastjson API Stream使用说明
FastjsonAPIStreamFastjson当需要处理超大JSON文本时,需要StreamAPI,在fastjson1.1.32版本中开始提供StreamAPI。如何序列化超大JSON数组序列化如果你的JSON格式是一个巨大的JSON数组,有很多元素,
Wesley13 Wesley13
2年前
Java 通过get post 请求url
1️⃣.已获取小程序的access\_token为例,通过Get请求url1importcom.alibaba.fastjson.JSONObject;23StringwechatUrl"https://api.weixin.qq.com/cgibin/token?grant_typeclie
Wesley13 Wesley13
2年前
JAVA项目实战
本节分享高德地图API实现web服务端导航和定位等功能packagecom.example.combat.gaodemapUtils;importcn.hutool.core.io.FileUtil;importcom.alibaba.fastjson.JSON;importcom.alibaba.
Easter79 Easter79
2年前
Springboot2 Tests
importcom.alibaba.fastjson.JSONObject;importlombok.extern.slf4j.Slf4j;importorg.junit.Test;importorg.junit.runner.RunWith;importorg.springframework.bea