一个请求通过经过中间件最后生成响应 基于koa2的demo const Koa = require('koa'); const app = new Koa(); const PORT = 3000; // #1 app.use(async (ctx, next)=>{ console.log('wa ...
分类:
其他好文 时间:
2021-04-15 12:19:38
阅读次数:
0
先搭建本地YUM源 确认系统版本 [root@moke ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [root@moke ~]# 准备资源: http://mirror.nsc.liu.se/centos-stor ...
分类:
其他好文 时间:
2021-04-15 12:18:08
阅读次数:
0
给定一个二叉树的根节点 root ,返回它的 中序 遍历。 示例 1: 输入:root = [1,null,2,3] 输出:[1,3,2] class Solution: def inorderTraversal(self, root: TreeNode) -> List[int]: def in_ ...
分类:
其他好文 时间:
2021-04-15 12:16:15
阅读次数:
0
问题描述 当双击打开自定义格式的文件时,希望使用当前正在运行的进程,而不是另起一个进程。 本文介绍一种方式解决如上问题,方案参考user3582780的解答 设置自定义文件格式的默认打开方式 参考链接,具体步骤如下: 在HKEY_CLASSES_ROOT中新建项,命名为自定义文件格式(如.custo ...
下载安装包:wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz(1)首先卸载mariadb,不然后面会和安装mysql需要的库冲突: [root@localhost ~] ...
分类:
数据库 时间:
2021-04-15 12:11:33
阅读次数:
0
主要测试了各方式clone的情况: 1. 安装gitlab,配置ip:port。 常规步骤: yum install -y curl policycoreutils-python openssh-server wget https://mirrors.tuna.tsinghua.edu.cn/git ...
分类:
其他好文 时间:
2021-04-15 12:08:39
阅读次数:
0
idea2020.1之后的版本去掉了自动导包的功能,主要是为了防止idea里面编写pom.xml的时候,还没编写完,然后触发自动导包的功能,导入了错误的包 视频解释参考 https://www.bilibili.com/video/BV1bp4y197eS 官方介绍:https://blog.jet ...
分类:
其他好文 时间:
2021-04-15 12:05:27
阅读次数:
0
Docker部署PostGres docker run -d --name postgres --restart always -e POSTGRES_USER='postgres' -e POSTGRES_PASSWORD='123456' -e ALLOW_IP_RANGE=0.0.0.0/0 ...
分类:
其他好文 时间:
2021-04-14 12:43:56
阅读次数:
0
怎么查看python的安装路径?如下: 打开cmd 输入python C:\Users>python3 Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32 ...
分类:
编程语言 时间:
2021-04-14 12:28:25
阅读次数:
0
<a id="ajax_submit">悄悄提交</a> <script> $('#ajax_submit').click(function () { $.ajax({ url:"/host/", type:'POST', data:{'k1':123,'k2':'root'}, success:f ...
分类:
Web程序 时间:
2021-04-14 12:21:15
阅读次数:
0