完整备份 命令:innobackupex --defaults-file=/etc/my.cnf --user=root --password=PASSWORD --database=DATE BACK_DIR_PATH PASSWORD 数据库密码 DATE 数据库名 --database=DAT ...
分类:
其他好文 时间:
2021-07-05 17:46:48
阅读次数:
0
后台Response和异常和日志封装 1.在小luffyapi中新建utils包,包下创建response.py,代码如下 from rest_framework.response import Response class APIResponse(Response): def __init__(s ...
分类:
其他好文 时间:
2021-07-05 17:24:29
阅读次数:
0
文件上传 新建一个项目,添加UploadController @RestController public class UploadController { @PostMapping("upload") public String post(@RequestParam("file") Multipa ...
分类:
Web程序 时间:
2021-07-05 16:40:02
阅读次数:
0
报错信息: invalid authentication data.404 null : Not Found 解决方法: 通过token方法登录 获取一个新的token 起名并赋予相应权限 点击生成 复制生成的token到IDEA PS:注意生成的token只能查看一次,一定要注意保存 ...
分类:
其他好文 时间:
2021-07-02 16:38:52
阅读次数:
0
file1=new File(path);//path 为文件地址String parentPath=file1.getParent();parentPath为path的父级目录String[] arr=null;//用来验证文件是否为空文件File parentFile=new File(pare ...
分类:
编程语言 时间:
2021-07-02 16:09:34
阅读次数:
0
1、安装git客户端 安装注意点:不要放到C盘(可能会有权限问题) 2、注册码云 码云地址:https://gitee.com/ 3.在码云上创建仓库(一定要是私有仓库) 4、生成ssh公钥 4.1、安装Git客户端成功后,运行Git Bash 4.2、输入命令:ssh-keygen -t rsa ...
分类:
其他好文 时间:
2021-07-02 15:59:21
阅读次数:
0
容器数据卷 docker的理念是应用和环境包打包城镜像. 那么如果数据在容器中,容器被删除跑路,就嗝屁了,所以数据可以持久化的存储在容器外部 容器数据卷就可以让容器之间有一个数据共享技术.把docker容器产生的数据同步到本地. 注意这个本地是的是操作系统linux不是docker.这是个目录挂载技 ...
分类:
其他好文 时间:
2021-07-02 15:55:09
阅读次数:
0
1 public static bool IsInPath(string command) 2 { 3 bool isInPath = false; 4 // 判断PATH中是否存在 命令 5 foreach (string test in (Environment.GetEnvironmentVa ...
分类:
其他好文 时间:
2021-07-02 15:52:09
阅读次数:
0
http://nginx.org/en/download.html ``` mac安装 nginx Mac:brew install nginx ``` 出错提示。参考一下链接 #### mac环境下brew command not found错误的解决方法 http://www.chenxm.cc ...
分类:
系统相关 时间:
2021-07-02 15:42:25
阅读次数:
0
File—Setting—Appearance&Beha—System Setting—Updates 取消勾选Automatically check updates 复选框 ...
分类:
Web程序 时间:
2021-07-02 15:25:29
阅读次数:
0