- 博客(4)
- 收藏
- 关注
原创 jsp中URL前后端传递中文参数出现乱码的解决方法
场景:在 jsp 页面中获取到 input 框的中文值,作为参数通过 ajax 传递到后端会出现乱码现象解决方法:在 jsp 页面中使用 JavaScript 的encodeURI() 函数对中文参数进行编码:var orgCode = jQuery("#org_code").val();// 获取到中文值orgCode = encodeURI(orgCode);// 对该中文值进行编码在后端程序中使用URLDecoder.decode(string,"UTF-8"); 对该中文参数..
2020-05-18 16:27:33
535
原创 On 'Update' action设置:IDEA修改java文件后,不用重启Tomcat,进行编译
On ‘Update’ action :手动触发 update 动作的时候做什么,一般选择Update classes and resources;On frame deactivation :IDE 失去焦点时做什么。开发过程中IDE会频繁失焦,为避免浪费CPU资源,选择Do nothing。Update resources:更新html,js,css等静态资源,运行模式和调...
2019-07-19 16:34:24
2098
原创 RestTemplate调用https接口报错:Caused by: javax.net.ssl.SSLHandshakeException
用RestTemplate调用http接口没问题,但是调用https接口(post请求)时报错。报错信息:Exception in thread "main" org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://xxx.xxx.xxx/oauth2/a...
2019-07-08 16:25:51
6446
原创 严重: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request proce
报错信息:严重: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root causejava.lang....
2018-08-06 09:10:49
89116
10
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人