摘要: 一、配置 spring被指文件 xmlns:task="http://www.springframework.org/schema/task" xsi:schemaLocation=" http://www.springframework.org/schema/task http://www.spr 阅读全文
posted @ 2020-07-08 16:11 Aaron_zyq 阅读(192) 评论(0) 推荐(0)
摘要: 1.递归调取文件夹下所有文件(包含子目录) public static void getAllFile(File file){ File[] files = file.listFiles(); for(File f:files) { if(f.isDirectory()) { getAllFile( 阅读全文
posted @ 2020-07-08 09:25 Aaron_zyq 阅读(113) 评论(0) 推荐(0)
摘要: str = str.subString(str.indexOf("_",str.indexOf("_")+1), str.length()-1); //str.indexOf("_")+1,是获得第一个"_"索引之后的索引,相当于"/111/222/"中的第一个1所在的索引1 阅读全文
posted @ 2020-07-08 09:18 Aaron_zyq 阅读(78) 评论(0) 推荐(0)