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
If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0 with simple c ...
分类:
其他好文 时间:
2021-07-02 15:54:07
阅读次数:
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
File—Setting—Appearance&Beha—System Setting—Updates 取消勾选Automatically check updates 复选框 ...
分类:
Web程序 时间:
2021-07-02 15:25:29
阅读次数:
0
6 事务 数据库事务( transaction)是访问并可操作各种数据项的一个数据库操作序列,这些操作要么全部执行,要么全部不执行,是一个不可分割的工作单位。事务由事务开始与事务结束之间执行的全部数据库操作组成。 定义:数据库事务是构成单一逻辑工作单元的操作集合。 一个典型的数据库事务如下: BEG ...
分类:
数据库 时间:
2021-07-02 15:23:48
阅读次数:
0
1.进入MySql数据库 mysql -uroot -p 2.查看数据库show databases; 3.创建数据库(GoTest)CREATE DATABASE GoTest 4.创建数据表()USE GO_TEST;CREATE TABLE `User`( `Id` BIGINT(20) NO ...
分类:
数据库 时间:
2021-07-01 17:27:15
阅读次数:
0
product 表 product_name、spu、create_datetime 想要查找商品名称中包涵短袖的商品一共有多少个 select count(*) from product where product_name like "%短袖%" shop 表 中有shop_name、chann ...
分类:
数据库 时间:
2021-07-01 17:22:17
阅读次数:
0
1.retrofit.create 创建retrofit 2.loadServiceMethod(method).invoke(args) 动态代理method,并在repos.enqueue 中调用invoke 3.ServiceMethod.parseAnnotations(this, meth ...
分类:
其他好文 时间:
2021-07-01 17:14:51
阅读次数:
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