1.概念 Cache-control用于控制HTTP缓存(在HTTP/1.0中可能部分没实现,仅仅实现了Pragma: no-cache) 数据包中的格式: Cache-Control: cache-directive cache-directive可以为以下: request时用到: | "no- ...
分类:
Web程序 时间:
2021-04-07 11:20:59
阅读次数:
0
request的header信息在通过feign调用的时候,不能直接传过去,可以写一个拦截器,给他发过去,但是中间出了个小bug,报错too many bytes written,经百度,找了如下https://blog.csdn.net/qq_39986681/article/details/10 ...
分类:
其他好文 时间:
2021-04-07 11:20:39
阅读次数:
0
常见的问题,记录操作日志中发现,getRemoteAddr取到的客户端的ip地址不是真实的ip,需要解析请求头中的信息获取正确ip。 public static String getIpAddress(HttpServletRequest request) { String ip = request ...
分类:
编程语言 时间:
2021-04-07 10:50:41
阅读次数:
0
let path = require('path');let url = require('url');let fs = require('fs');let ejs = require('ejs');let tools = require('./tools');let routes = { 'sta ...
分类:
Web程序 时间:
2021-04-07 10:47:38
阅读次数:
0
如下pod定义: containers: - name: busyboxv1 image: busybox:v1 resources: limits: memory: 600Mi cpu: 800m 1cpu=1000m,800m代表 1个cpu使用了80ms(1s=100ms) requests: ...
分类:
其他好文 时间:
2021-04-06 15:04:24
阅读次数:
0
Shodan收集ip脚本加我的thinkphp日志漏洞探测脚本升级版(我对我灵活的脑袋瓜可太自豪了) ...
分类:
Web程序 时间:
2021-04-06 14:51:41
阅读次数:
0
realsense cmake Selecting Windows SDK version to target Windows 10.0.19042. Checking internet connection... Internet connection identified Info: REALS ...
分类:
其他好文 时间:
2021-04-06 14:23:36
阅读次数:
0
上一节我们把服务路由改由客户端传入了,但是每次都要在客户端这里写命名空间啥的比较麻烦,这应该在写方法的时候就应该规定好。这时候特性就派上用场了。 想要了解特性的使用的请参考这篇文章:【.net 深呼吸】自定义特性(Attribute)的实现与检索方法 1、首先添加两个特性类,一个用于接口,一个用于方 ...
分类:
其他好文 时间:
2021-04-05 12:19:02
阅读次数:
0
Django的视图 简单的视图 我们将在 myapp 创建一个简单的视图显示: "welcome to yiibai !" 查看如下的视图 ? from django.http import HttpResponse def hello(request): text = """<h1>welcome ...
分类:
其他好文 时间:
2021-04-05 12:18:07
阅读次数:
0
把public所有东西放到wwwroot目录下 修改.htaccess <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d ...
分类:
其他好文 时间:
2021-04-02 13:38:02
阅读次数:
0