Wesley13 Wesley13
2年前
java 多文件打包压缩
publicstaticvoidmain(Stringargs){FilesrcFiles{newFile("E:\\testZip\\testZip.zip"),newFile("E:\\testZip\\test2.json"),newFile("E:\\testZip\\test3
Easter79 Easter79
2年前
sqoop job用法
创建JOB sqoopjobDmapreduce.job.queuename'root.bi'creatext\_test\_jobimportconnectjdbc:mysql://xxxx:3306/test?tinyInt1isBitfalseusernamexxxpasswordxxx
Wesley13 Wesley13
2年前
VSCode 运行go test显示打印日志
在VSCode中运行gotest,在代码中写的fmt.Printf("TestB\n")这些语句均不打印,只显示最终的结果PASSokgithub.com/B0.034sSuccess:Testspassed.经查,需要在执行gotest时添加v参数,而默认不添加,需要在VSCo
Stella981 Stella981
2年前
Spring Test 整合 JUnit 4 使用总结
1\.加入依赖包<dependency<groupIdjunit</groupId<artifactIdjunit</artifactId<version4.9</version
Wesley13 Wesley13
2年前
Java ASM 简单例子
Test的代码比较简单publicclassTest{/\\\@paramargs\/publicstaticvoidmain(String\\args){test01();}staticvoidtest01(){System.out.println("HelloInTes
Wesley13 Wesley13
2年前
Mysql 分区表
DROPTABLEIFEXISTS\frank\_test\;CREATETABLE\frank\_test\(\id\bigint(20)NOTNULLAUTO\_INCREMENTCOMMENT'主键id',\gid\bigint(20)DEFAULT'0'COMMENT'基础表id'
Stella981 Stella981
2年前
Linux 三剑客之sed命令总结
sedsed1、关键字取行sedn'/jpinsz/p'test.txtsedn'/^d/p'test.txt2、根据行数取行sedn'2,5p'test.txtroot@JP1tmpsedn'2,5p'
Wesley13 Wesley13
2年前
Android之控制视图
假设有两个XML布局文件:test1.xml和test2.xml,这两个布局文件的根节点都是<LinearLayout,下面的代码获得了test2.xml文件中的LinearLayout对象,并将该对象作为test1.xml文件中的<LinearLayout标签的子节点添加到test1.xml的LinearLayout对象中。//获得t
Stella981 Stella981
2年前
25道Shell面试题
1、用sed修改test.txt的23行test为tset;sed–i‘23s/test/tset/g’test.txt2、查看/web.log第25行第三列的内容。sed–n‘25p’/web.log|cut–d“”–f3head–n25/web.log|tail–n1|
Stella981 Stella981
2年前
Linux 下的C和Intel 汇编语言混用
test.s(转载)\;test.ssection.data                      ;数据段声明        msgdb"Hello,world!",0x