Dajngo查询数据,查询出来之后生成Excel保存本地 class ExportExcel(APIView): def post(self, request, *args, **kwargs): export_time = request.data.get('startEndTime') user ...
分类:
其他好文 时间:
2021-07-01 17:21:58
阅读次数:
0
GET /megacorp/employee/_search megacorp :索引库 employee:类型 curl 'http://localhost:9200/?pretty' pretty:美化结果输出 GET /_count { "query": { "match_all": {} } ...
分类:
其他好文 时间:
2021-07-01 17:21:12
阅读次数:
0
1.安装python sudo yum install -y curl policycoreutils-pythonopenssh-server 2.将SSH服务设置成开机自启动,分别执行以下命令: sudo systemctl enable sshd sudo systemctl start ss ...
分类:
系统相关 时间:
2021-07-01 17:07:32
阅读次数:
0
(#5题) 请求首行,请求头,请求体 # 1 restful规范--10条 # 2 django上写符合restful规范的接口 # 3 drf写接口 # 4 APIView--》继承了原生View 》get,post方法 -(为什么get请求来了,就会执行get方法:原生View的dispatch ...
分类:
其他好文 时间:
2021-07-01 16:52:50
阅读次数:
0
macOS安装Oh My Zsh macOS从Catalina开始将默认的shell变为了Zsh,可以安装Oh My Zsh让其更加好用。 安装命令 sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs ...
分类:
系统相关 时间:
2021-07-01 16:48:07
阅读次数:
0
RestTemplate String url = "http://aaa.com"; URI uri = URI.create(url); post请求无参数 JSONObject jsonObject = restTemplate.postForObject(uri, "{}", JSONObj ...
分类:
其他好文 时间:
2021-06-30 18:30:07
阅读次数:
0
#!/usr/bin/env bash __Author__="liy" # 发送钉钉告警 function DingDing(){ curl 'https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxx ...
分类:
其他好文 时间:
2021-06-30 18:14:38
阅读次数:
0
乱码问题 测试步骤: 1、我们可以在首页编写一个提交的表单 <form action="/e/t" method="post"> <input type="text" name="name"> <input type="submit"> </form> ? 2、后台编写对应的处理类 @Control ...
分类:
其他好文 时间:
2021-06-30 17:32:30
阅读次数:
0
原文链接:https://debugtalk.com/post/head-first-locust-advanced-script/ 关联 在某些请求中,需要携带之前从Server端返回的参数,因此在构造请求时需要先从之前的Response中提取出所需的参数。 1 from lxml import ...
分类:
其他好文 时间:
2021-06-29 15:24:26
阅读次数:
0
1、什么是Velocity Velocity 是一个简单而强大的基于 Java 的模板引擎,可将数据从纯 Java 对象呈现为文本、xml、电子邮件、SQL、Post Script、HTML 等。模板语法和呈现引擎既易于理解,又易于学习和实施. 功能远远超出了 Web 领域(例如 xdoclet、m ...
分类:
其他好文 时间:
2021-06-28 20:55:07
阅读次数:
0