10 2017 档案

摘要:首先,让我们看看两个特别的字符:'^' 和 ‘$' 他们是分别用来匹配字符串的开始和结束,一下分别举例说明 "^The": 匹配以 "The"开头的字符串; "of despair$": 匹配以 "of despair" 结尾的字符串; "^abc$": 匹配以abc开头和以abc结尾的字符串,实际 阅读全文
posted @ 2017-10-31 10:43 yaoh371 阅读(3028) 评论(0) 推荐(0)
摘要:public static List getFileList(String strPath) { File dir = new File(strPath); File[] files = dir.listFiles(); // 该文件目录下文件全部放入数组 if (files != null) { for (int i = ... 阅读全文
posted @ 2017-10-27 14:51 yaoh371 阅读(304) 评论(0) 推荐(0)
摘要:pom文件明明引入了unit,为什么还是用不了@Test? 配置如下: 原因:上述scope配置了Junit可用的位置,test表示只能在src下的test文件夹下面才可以使用 解决办法:去掉scope配置就可以了 阅读全文
posted @ 2017-10-25 10:15 yaoh371 阅读(4198) 评论(0) 推荐(0)