完整备份 命令: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
[CTSC2018]混合果汁 \(\text{Solution:}\) 题目有三个限制:饮料体积的限制、要求的饮料总体积限制、总价格限制。 首先,美味度最大是我们一定要满足的条件。考虑如何让它变得好维护: 将饮料按照美味度排序,并按顺序建立主席树。 这样,\(root_i\) 所对应的区间 \([1 ...
分类:
其他好文 时间:
2021-07-05 17:22:16
阅读次数:
0
文件上传 新建一个项目,添加UploadController @RestController public class UploadController { @PostMapping("upload") public String post(@RequestParam("file") Multipa ...
分类:
Web程序 时间:
2021-07-05 16:40:02
阅读次数:
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
容器数据卷 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
JDBC 映射数据库时成员变量命名不规范导致的bug //未完待续,待补充测试信息; ####JDBC连接数据库时,用新建的实体类去映射数据库中表信息,因为命名不规范,导致输出结果始终为空; ####期间解析过程正常,添加过程正常 映射类: public class Dep { private In ...
分类:
其他好文 时间:
2021-07-02 15:33:35
阅读次数:
0
File—Setting—Appearance&Beha—System Setting—Updates 取消勾选Automatically check updates 复选框 ...
分类:
Web程序 时间:
2021-07-02 15:25:29
阅读次数:
0
before commit, do: git rm --cached <filename> ATTENTION: do not use 'git rm <filename>', this will delete the file from disk if commited, first use: " ...
分类:
其他好文 时间:
2021-07-01 17:07:16
阅读次数:
0