摘要: 前言: jmeter, Apache下的测试工具, 常用来进行压测, 项目中, 接口通常都需要进行登录才能被调用, 直接调用将提示"登录失效", 下面介绍如何在jmeter中配置参数实现登录, 参考教程: "https://blog.csdn.net/qq_39720249/article/deta 阅读全文
posted @ 2019-05-13 12:37 wangzaiplus 阅读(2177) 评论(0) 推荐(0) 编辑
摘要: 一、准备工作 1. nginx1.14 "nginx1.14下载链接" 2. tomcat8 "tomcat8下载链接" 3. windows系统 二、实现目标 访问 地址时, 将请求轮询到 和`tomcat2 proxy_connect_timeout 1;`配置, 实现其中一台服务器宕机能快速切 阅读全文
posted @ 2019-05-10 10:44 wangzaiplus 阅读(1871) 评论(0) 推荐(0) 编辑
摘要: 以下是从nginx配置文件mime.types中提取出的最常用的文件格式, 整理了下, 方便查看 类型|文件格式 | default_type|application/octet stream | text/html|html htm shtml text/css|css application/j 阅读全文
posted @ 2019-05-05 18:25 wangzaiplus 阅读(3757) 评论(2) 推荐(1) 编辑
摘要: 一、html页面 二、jQuery 阅读全文
posted @ 2019-04-20 16:58 wangzaiplus 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: ConfigUtil 阅读全文
posted @ 2019-04-20 16:48 wangzaiplus 阅读(1526) 评论(0) 推荐(0) 编辑
摘要: 一、maven依赖 二、JodaTimeUtil 阅读全文
posted @ 2019-04-20 16:44 wangzaiplus 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 一、问题描述 项目中, 使用restTemplate上传文件时, 文件名中文乱码, 一串问号, 源文件名为: 测试中文乱码哦哦哦.zip , 通过restTemplate.postForObject调用接口, 发现文件名变成了: ?????????.zip , 上传失败 二、话不多说, 解决方案 1 阅读全文
posted @ 2019-04-20 12:02 wangzaiplus 阅读(3102) 评论(2) 推荐(1) 编辑
摘要: 一、代码 package algorithm; public class BinarySearch { public static int binarySearch(int[] arr, int key) { if (null == arr || arr.length 阅读全文
posted @ 2019-04-14 11:01 wangzaiplus 阅读(1307) 评论(0) 推荐(0) 编辑
摘要: 一、代码 二、运行结果 阅读全文
posted @ 2019-04-08 17:44 wangzaiplus 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 一、代码 package algorithm; import java.util.Stack; public class ReverseString { / 逆序遍历实现字符串反转 @param string @return / public static String reverse(String 阅读全文
posted @ 2019-04-07 11:30 wangzaiplus 阅读(1026) 评论(0) 推荐(0) 编辑