简述 zimg是图像存储和处理服务器。您可以使用URL参数从zimg获取压缩和缩放的图像。 zimg的并发I / O,分布式存储和时间处理能力非常出色。 您不再需要在图像服务器中使用nginx。在基准测试中,zimg可以在高并发级别上处理每秒3000+图像下载任务和每秒90000+ HTTP回应请求 ...
分类:
其他好文 时间:
2021-03-29 12:20:06
阅读次数:
0
安装axios npm install axios --save axios使用 axios({ url: 'http://123.207.32.32:8000/home/multidata', method: 'get' }).then((res) => { console.log(res); } ...
分类:
移动开发 时间:
2021-03-29 12:04:07
阅读次数:
0
在组件中使用 $route 会使之与其对应路由形成高度耦合,从而使组件只能在某些特定的 URL 上使用,限制了其灵活性。 使用 props 将组件和路由解耦 //router.js import Vue from 'vue' import Router from 'vue-router' impor ...
分类:
其他好文 时间:
2021-03-29 11:51:19
阅读次数:
0
将http请求转发至https的URL 重定向 Redirect [status] URL-path URL status状态: Permanent: 返回永久重定向状态码 301 Temp:返回临时重定向状态码302. 此为默认值 示例: Redirect temp / https://www.m ...
分类:
Web程序 时间:
2021-03-29 11:49:48
阅读次数:
0
node和python默认的rsa加密方式是不一样,要调整一下。 node代码: const fs = require('fs'); const NodeRSA = require('node-rsa'); const path = require('path').resolve(); const ...
分类:
编程语言 时间:
2021-03-29 11:41:58
阅读次数:
0
首先,需要通过button按钮来弹出授权框 <button open-type="getUserInfo" @getuserinfo="getUserInfo">微信登录</button> getUserInfo(e) { //拿到用户信息 信息包含头像,昵称 let detail = e.deta ...
分类:
微信 时间:
2021-03-29 11:35:23
阅读次数:
0
结合DRF框架提供标准RESTful API接口 https://www.cnblogs.com/xiaonq/p/10053234.html restful说明 1、RESTful不是一种技术,而是一种接口规范,主要规范包括:1.请求方式、2.状态码、3、url规范、4、传参规范 2、RESTfu ...
分类:
其他好文 时间:
2021-03-26 15:25:35
阅读次数:
0
需要在工程的pom文件加上sleuth的起步依赖和zipkin的起步依赖,代码如下: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-sleuth</artifact ...
分类:
其他好文 时间:
2021-03-18 14:43:18
阅读次数:
0
问题原因在于官方在2020年12月2日正式将CentOS 6相关的软件源移出了官方源,随之而来逐级镜像也会陆续将其删除。 解决方案: curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliy ...
分类:
Web程序 时间:
2021-03-17 14:13:50
阅读次数:
0
react-router: 它通过管理 URL,实现组件的切换和状态的变化,开发复杂的应用几乎肯定会用到。 用法:子路由也可以不写在Router组件里面,单独传入Router组件的routes属性。 组件有一个参数history,它的值hashHistory表示,路由的切换由URL的hash变化决定 ...
分类:
其他好文 时间:
2021-03-17 14:02:24
阅读次数:
0