一 if语句 if语句是指如果满足某种条件,就进行某种处理。 格式: if (条件语句){ 执行语句; …… } 流程图: 例如: public class IfDemo01 { public static void main(String[] args) { int x = 5; if (x < ...
分类:
编程语言 时间:
2020-06-28 18:29:35
阅读次数:
51
org.springframework.web.context.request.RequestContextHolderorg.springframework.web.context.request.RequestAttributesorg.springframework.web.context.r ...
分类:
编程语言 时间:
2020-06-28 18:20:57
阅读次数:
149
忽略特殊文件 一、创建 .gitignore 文件,里面写文件名或正则,如: batabase.php *.ini 二、将 .gitignore 上传到远程 三、将文件强制推送到远程 git add -f database.php 四、检查 .gittignore 语法错误 git check-ig ...
分类:
其他好文 时间:
2020-06-28 18:18:09
阅读次数:
53
现象 备库状态变成了Open,而不是预期的Open,Readonly $ crsctl stat res -t -w "TYPE = ora.database.type" ora.orcl.db 1 ONLINE ONLINE <hostname01> Open 2 ONLINE ONLINE <h ...
分类:
数据库 时间:
2020-06-28 18:15:04
阅读次数:
104
一. 应用层面的优化 ###使用连接池 频繁的创建连接,关闭连接是比较浪费资源的,我们可以创建数据库连接池,提高访问性能 ###减少对mysql的访问 ####2.1 避免对数据的重复访问 比如,获取书籍的id和name,查询如下: select id,name from book; 之后,在业务中 ...
分类:
数据库 时间:
2020-06-28 16:46:42
阅读次数:
68
选中要测试的类, Alt + Enter 出现 create Test, 选中junit4 要在有启动类的项目中创建 注意这两个注解: @SpringBootTest(classes = WebApplication.class) @RunWith(SpringRunner.class) impor ...
分类:
编程语言 时间:
2020-06-28 15:18:52
阅读次数:
57
public void Check() { while (true) { Control.CheckForIllegalCrossThreadCalls = false; bool isConnectInternet = InternetGetConnectedState(0, 0); if (is ...
异步编程模型 使用 IAsyncResult 设计模式的异步操作是通过名为 BeginOperationName 和 EndOperationName 的两个方法来实现的,这两个方法分别开始和结束异步操作 OperationName 。 例如, FileStream 类提供 BeginRead 和 ...
分类:
其他好文 时间:
2020-06-28 00:12:16
阅读次数:
55
通过DriverManager获取数据库连接 修改一下配置文件 driver=com.mysql.cj.jdbc.Driver jdbcUrl=jdbc:mysql://localhost:3306/testjdbc?serverTimezone=GMT%2B8 user=root password ...
分类:
数据库 时间:
2020-06-27 20:11:05
阅读次数:
74
#shutil模块 ###copy #####copyfile(src,dst) 文件复制,不含元数据,src与dst是文件路径的字符串 shutil.copyfile('mk1/file_src','dst/file_src') #复制文件到目标目录,文件不变 shutil.copyfile('m ...
分类:
编程语言 时间:
2020-06-27 14:44:27
阅读次数:
65