环境 JDK 6 JUnit 4.13 Spring Tool Suite 4.6.2 Maven 3.6.3 参数化测试 参数化测试首先需要指定 Runner:org.junit.runners.Parameterized,然后准备测试数据。 有两种注入测试数据的方法,一种是构造函数注入,另一种是 ...
分类:
其他好文 时间:
2020-06-21 23:04:26
阅读次数:
53
1基于reverseproxy实现的反向代理例子packagemainimport("log""net/http""net/http/httputil""net/url")funcmain(){//地址重写实例//http://127.0.0.1:8888/test?id=1=》http://127.0.0.1:8081/reverse/test?id=1rs1:="http://127.0.0.
分类:
其他好文 时间:
2020-06-21 18:16:09
阅读次数:
61
location /private/ { auth_request /auth; ... } location = /auth { proxy_pass ... proxy_pass_request_body off; proxy_set_header Content-Length ""; prox ...
分类:
其他好文 时间:
2020-06-21 10:14:27
阅读次数:
75
function getrealurl($url){ $realurl = $url; try { $headers = get_headers($realurl, true); if(isset($headers['Location'])){ if(is_array($headers['Locat ...
分类:
Web程序 时间:
2020-06-20 23:54:00
阅读次数:
81
首先去Nuget中安装Log4Net包 安装:log4net 安装:Microsoft.Extensions.Logging.Console 安装:Microsoft.Extensions.Logging.Log4Net.AspNetCore 方式一 Program.cs文件 using Micro ...
分类:
Web程序 时间:
2020-06-20 21:29:26
阅读次数:
105
基于 Jupyter Notebook 和Plotly的交互式COVID-19实时追踪可视化系统 3.“散点图”图表 renamed_columns_map = { "Country/Region": "country", "Province/State": "location", "Lat": " ...
分类:
其他好文 时间:
2020-06-20 21:17:00
阅读次数:
67
一共三种方式,分别是系统默认、自定义、webjars 一、使用系统默认方式存放静态资源 1.我们都只知道springboot是通过自动配置来实现的,其中静态资源的位置,他也有自己定义,分别是: classpath:/static/ classpath:/public/ classpath:/reso ...
分类:
编程语言 时间:
2020-06-20 16:51:50
阅读次数:
63
Virtual memory and Pagefile 32位的Windows 参考https://support.microsoft.com/en-us/help/2160852/ram-virtual-memory-pagefile-and-memory-management-in-window ...
分类:
其他好文 时间:
2020-06-20 16:46:08
阅读次数:
46
使用的是 vue 3.0 在导航部分重复点击报错 报错信息如图 Avoided redundant navigation to current location: 避免了对当前位置的冗余导航 其实无伤大雅,不影响操作的。 百度了解决方案,在 route.js 中添加以下代码 Vue.use(VueR ...
分类:
其他好文 时间:
2020-06-20 16:34:50
阅读次数:
286
通过WEB界面查看 此方法需要依赖于nginx的http_stub_status_module模块,可输入nginx -V查看是否已经安装此模块,如果没有安装需要重新编译该模块。 在您的任意一个server段内,添加如下配置: location /status { stub_status on; } ...
分类:
其他好文 时间:
2020-06-20 10:24:27
阅读次数:
59