摘要:
安装k8s desktop git clone https://github.moeyy.xyz/https://github.com/AliyunContainerService/k8s-for-docker-desktop cd k8s-for-docker-desktop sh load_im 阅读全文
摘要:
springboot 默认内置tomcat 可以替换 undertow、jetty、netty tomcat tomcat 默认200最大线程 完整实现了JEE容器和serlet规范 tomcat6以后支持Jdk1.4的NIO 用于完整支持了javaee 因此比较笨重和重量级 很多高并发会替换成un 阅读全文
摘要:
springwebFlux是 spring5 、springboot2.4 、springcloud2020 webFlux 采用响应式编程 使用Rsocket 协议 代替 HTTP 使用场景主要在springcloud gateway、日志 ,监控检测等等 springwebFlux 和sprin 阅读全文
摘要:
官网并不提供form data 以下方式获取 @RequestMapping(path = "/post", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) public Mono<Map<Strin 阅读全文
摘要:
异常接口 public class Try { public static <T> Consumer<? super T> of(UncheckedConsumer<T> action) { Objects.requireNonNull(action); return t -> { try { ac 阅读全文
摘要:
docker-compose version: '3' services: mysql-svc: image: mysql:5.7 container_name: mysql ports: - 3306:3306 environment: TZ: Asia/Shanghai MYSQL_ROOT_P 阅读全文
摘要:
需要后台运行 * * * * * /usr/local/bin/python main.py >>job.log 2>&1 & 环境变量 // 无论是 命令 还是目录文件都要绝对路径 /usr/local/bin/python // main.py 里面也要使用 绝对路径的文件夹 或者文件 阅读全文
摘要:
很多时候感觉对了 但是就是404 二级动态代理 可能是多一个斜杠 // 错误代理 // “/” 结尾在URL处,表示反向代理时不是 “https://www.xxxxxxx.com/proxyname/” , // 而是 “https://www.xxxxxxx.com/” ,否则容易出现404的情 阅读全文
摘要:
排序 def recursive_sort(self, categories): categories.sort(key=lambda x: x['sort']) for category in categories: if category['children']: category['child 阅读全文
摘要:
首先用ffmeg 获取视频的宽高 为了使图片看起来 和视频大小一致 ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 xx1.mp4 将图片缩放到视频宽高 ffmpeg -i 阅读全文