摘要: 1.brew install trivy 2.trivy image --severity CRITICAL -f json -o {xxx}.json {imagesName}:{tag} --timeout 10h0m0s 阅读全文
posted @ 2023-10-19 11:05 liuli_warriors 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1.首先加入一个 init 方法进行异步初始化操作 private ExecutorService executorService; @PostConstruct public void init() { executorService = new ThreadPoolExecutor( Runti 阅读全文
posted @ 2023-09-19 10:21 liuli_warriors 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 举例:将10G大小的log文件2017.log打包压缩并分割成多个2000m的文件 #分卷压缩 tar zcf - xxx |split -b 2000m - xxx_v2.0.tar.gz. #合并分卷解压缩 cat xxx.tar.gz.a* | tar -xzv 阅读全文
posted @ 2022-08-08 14:21 liuli_warriors 阅读(713) 评论(0) 推荐(0) 编辑
摘要: cd /home/work/tools/jdk1.8.0_202/jre/lib/fonts 创建fallback 文件夹 拷贝simsun文件到fallback下 docker cp simsun.ttc d65c9e1f95ac:/home/work/tools/jdk1.8.0_202/jre 阅读全文
posted @ 2021-11-04 14:20 liuli_warriors 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 什么是jwt jsonwebtoken (JWT)是一个开放标准(rfc7519).它定义了一种紧凑的,自包含式的方式,用于在各方之间以JSON对象安全地传输信息,此信息可以验证和信任,因为他是数字签名的,jwt可以使用秘密(使用HMAC算法)或使用RSA或ECDSA的公钥/私钥对进行签名 通俗解释 阅读全文
posted @ 2020-12-03 13:47 liuli_warriors 阅读(224) 评论(0) 推荐(0) 编辑
摘要: # 获取rtsp流在 frame中实时检测 import cv2 faceCasCade = cv2.CascadeClassifier("Resources/haarcascade_frontalface_default.xml") # 这个rtsp 流是网络控摄像头进行连接的 cap = cv2 阅读全文
posted @ 2020-10-23 18:43 liuli_warriors 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 一.导入依赖 所依赖的springboot版本 1 <parent> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-parent</artifactId> 4 <version>2.1. 阅读全文
posted @ 2020-09-02 18:23 liuli_warriors 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 先导入springCache的缓存依赖 除了缓存的依赖和redis的依赖,下面的其他依赖可加可不加 1 <!--SpringCache配置--> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>sp 阅读全文
posted @ 2020-07-29 15:14 liuli_warriors 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 首先安装Vagrant,和VirtualBox, Vagrant下载地址:https://www.vagrantup.com/VirtualBox下载地址:https://www.virtualbox.org/ wind+r cmd 输入vagrant看有没有装上 然后使用vagrant init 阅读全文
posted @ 2020-07-27 10:42 liuli_warriors 阅读(142) 评论(1) 推荐(0) 编辑
摘要: 1.只需要导入bootstrap.js,jquery.js,vue.js,bootstrap.css <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device- 阅读全文
posted @ 2020-07-01 11:57 liuli_warriors 阅读(346) 评论(0) 推荐(0) 编辑