![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常解决
开发中遇到的比较头疼的异常处理过程记录
你男朋友
我喜欢的那匹驹身上,有锦,润而不耀,与龙同尘
展开
-
一次OOM异常解决
问题:操作1000条数据库查出的数据导致的OOMJDK版本:1.8问题代码: //list里有一千条数据 List<Map> listMap = dao.select("xxx"); String otherText = null; if (listMap != null && listMap.size() > 0) { //遍历结果,获取map中的value将其转化成json并拼接 for (Map map :原创 2022-03-15 19:19:43 · 1231 阅读 · 1 评论 -
maven用package命令打包后的jar包运行报错或抛异常
clean+install原创 2021-10-28 18:07:57 · 1640 阅读 · 0 评论 -
MobaXterm上传文件后大小为0kb或者非常大
x C:\USER\XXX\XXX\牛x√ C:\english\hello本地文件所在的绝对路径里不能有中文原创 2021-09-08 17:22:11 · 3195 阅读 · 0 评论 -
接口请求报400:malformed request syntax, invalid request message framing, or deceptive request routing
第一种情况去看一下前端传的参数是不是有接口里没有的参数,,前端调用接口传的参数可以少,但一定不要比接口中的接受对象里的属性多。举个例子:你用ajax发送了一个post请求携带的json参数是这样的:{“name”:“四百”,“age”:“100”,“sex”:“man”}然后你请求的后端接口是这样的:@PostController("/newbee")puiblic String newbee(@RequsestBody Person person){}然后Person是这样的:cl原创 2021-08-29 13:26:50 · 7067 阅读 · 0 评论 -
Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported
SpringBoot前后端分离项目,前端html页面使用ajax请求后台接口控制台异常信息:2021-05-10 22:29:25.707 WARN 15836 --- [nio-9000-exec-9] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-原创 2021-05-10 22:40:34 · 690 阅读 · 0 评论