Loading

龙行博客

“最新文章“

每天更新一点BUG教程

正在运行的容器获取docker run

新建一个脚本文件 touch script.sh && chmod +x script.sh 脚本代码 #!/bin/bash # 检查是否提供了容器ID或名称 if [ -z "$1" ]; then echo "Usage: $0 <container_id_or_name>" exit 1 fi CONTAINER=$1 # 获取容器名 NAME=$(docker inspect --format='{{.Name}}' $CONTAINER | cut -c 2-) # 获取镜像名 IMAGE=$(do...

npm安装umami

一切的源头: https://github.com/umami-software/umami 1.第一步当然是安装npm了.这里就不写了. 2.下载umami源文件 第一种方式直接git clone https://github.com/umami-software/umami.git 第二种就是直接去下载zip包,拖到服务器上unzip解压 3.install源文件 cd unami yard install 4. 根目录创建.env文件 DATABASE_URL=mysql://umami:password@localhost:3306/uma...

国内部署 prisma 引擎失败的问题

当在国内部署 prisma 时经常会因为网络或者其他原因出现下载 prisma 引擎失败问题: > Downloading Prisma engines for Node-API for rhel-openssl-1.1.x [ ] 0%Error: request to https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/libquery_engine.so.nod...

记录MyBatis常用的几种写法

循环容器的标签forEach item:集合中元素迭代时的别名, index:集合中元素迭代时的索引 open:常用语where语句中,表示以什么开始,比如以'('开始 separator:表示在每次进行迭代时的分隔符, close 常用语where语句中,表示以什么结束 //mapper中我们要为这个方法传递的是一个容器,将容器中的元素一个一个的 //拼接到xml的方法中就要使用这个forEach这个标签了 public List<Entity> queryById(List<String> userids);  ...

docker二进制安装

被墙了,安装都费劲,找了个二进制安装方法,测试没问题 1.根据需求下载对应版本docker二进制包 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/static/stable/x86_64/ 2.下载二进制包 wget https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/static/stable/x86_64/docker-20.10.9.tgz 3.创建目录 mkdir -P /app/tools 4.解压到指定目录 tar xf doc...

使用Github Action将国外的Docker镜像转存到阿里云私有仓库

Docker Images Pusher 使用Github Action将国外的Docker镜像转存到阿里云私有仓库,供国内服务器使用,免费易用 支持DockerHub, gcr.io, k8s.io, quay.io, ghcr.io等任意仓库 作者:技术爬爬虾 视频教程:https://www.bilibili.com/video/BV1Zn4y19743/ 使用方式 配置阿里云 登录阿里云容器镜像服务 https://cr.console.aliyun.com/ 启用个人实例,创建一个命名空间(ALIYUN_NAME_SPACE) 访问凭证–&g...

初次上传代码到Git

记录下每次都要忘记 init初始 git init 与远程仓库连接 git remote add origin https://gitaddress.com/.git 添加文件 git add . 查看仓库状态 git status 查看分支 git branch 提交commit `git commit -m "first commit" 提交代码 git push origin master

SpringBoot-mybatis实现自定义字段填充

这只是简单哪来做个填充比如create_time,这个我一般用数据库CURRENT_TIMESTAMP. create_by这些. 更多用法,百度. package com.sckw.transport.plugin; import org.apache.ibatis.executor.Executor; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.mapping.SqlCommandType; import org.apache.ibatis.p...

使用Token机制,保证请求幂等

幂等有很多方案,但是个人觉得这个最好用,来一个示例方案先 我们使用Redis保存Token令牌,引入SpringBoot,Redis,ULID相关的依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <version>2.7.0</version> </depend...

收藏一波信创体系OA系统,可以的

它的官网: https://www.o2oa.net/ github: https://github.com/o2oa/o2oa?tab=readme-ov-file 收藏的目的,如有需要以后直接就能参考参考.