随笔分类 -  Java

摘要:Object requestBody = ImmutableMap.of("username", username, "password", password); HttpEntity request = requestWithHeader(requestBody, headers -> { hea 阅读全文
posted @ 2017-08-03 21:20 aiaito 阅读(2352) 评论(0) 推荐(0)
摘要:问题描述: 1.用户非法链接接口数据,并定时更新。 2.如果公开有效时间的请求 解决方案: 在url添加两个参数:t=时间戳,k=md5(guid+t) 当请求打过来时,根据t判断时间有效性,并根据t和后台设置的key(guid)来判断k是否相等。 阅读全文
posted @ 2016-04-01 11:58 aiaito 阅读(1339) 评论(2) 推荐(0)
摘要:自己虚拟机jekins配置:(jenkins+svn+gradle)自动化部署,1.linux配置好jdk,解压tomcat,将 jenkins.war翻到webapps目录下。2.系统管理-管理用户,新建用户;3.用户授权:Configure Global Security,勾选,登录用户可以做任 阅读全文
posted @ 2016-03-13 17:34 aiaito 阅读(4571) 评论(0) 推荐(0)
摘要:公共支付平台:XX 1.支付宝+微信+银联,通过银联支付,实际也是走的支付宝提供的接口,并未和银行直接做交互。支付平台包含两方面配置(XX各系统配置+各支付系统配置)2.首先XX:包含多个提供支付的系统(i聘+b端+校园+评测系统(内网+公网)),支付平台会配置各系统交互的xml信息(主要配置:系统 阅读全文
posted @ 2016-03-13 17:09 aiaito 阅读(1758) 评论(0) 推荐(0)
摘要:case:@RequestMapping中添加 produces= "text/plain;charset=UTF-8",@RequestMapping(method = RequestMethod.GET, produces= "text/plain;charset=UTF-8", 阅读全文
posted @ 2015-08-30 21:57 aiaito 阅读(734) 评论(0) 推荐(0)
摘要:1.设置tomcat中的VM optins:-Dfile.encofing=UTF-82.idea安装目录bin文件夹中idea.exe.vmoptions、idea64.exe.vmoptions两个文件中添加:-Dfile.encofing=UTF-8 阅读全文
posted @ 2015-08-30 21:01 aiaito 阅读(3077) 评论(0) 推荐(0)