上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 33 下一页
摘要: @RunWith(SpringJUnit4ClassRunner.class)让测试运行于Spring测试环境 @ContextConfiguration 用来指定加载的Spring配置文件的位置,会加载默认配置文件 加载Spring配置文件:@ContextConfiguration(classp 阅读全文
posted @ 2017-02-05 15:39 N神3 阅读(1217) 评论(0) 推荐(1) 编辑
摘要: commons-io.jar: FileUtils 读取文件所有行 File file = new File("c:\\123.txt"); List<String> lines = FileUtils.readLines(file, "UTF-8"); 阅读全文
posted @ 2017-02-04 16:35 N神3 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 二维数组声明并初始化数据String [][]a={ {"1","2","3"}, {"4","5","6"} };一维数组的形式:(1), int a[]; a = new int[5]; 等同于 int a[] = new int[5];(2), int[] a; a = new int[5]; 阅读全文
posted @ 2017-02-04 15:56 N神3 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 声明一个数组 Java代码 String[] aArray = new String[5]; //声明数组 String[] bArray = {"a","b","c", "d", "e"}; //声明并初始化数组 String[] cArray = new String[]{"a","b","c" 阅读全文
posted @ 2017-02-04 15:36 N神3 阅读(163) 评论(0) 推荐(0) 编辑
摘要: uploadify onSelect 【return false】停止选择 阅读全文
posted @ 2017-02-03 15:17 N神3 阅读(743) 评论(0) 推荐(0) 编辑
摘要: http://mvnrepository.com 阅读全文
posted @ 2017-01-26 11:31 N神3 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 配置镜像仓库:当访问远程仓库(中央仓库:http://repo.maven.org/maven2)就会变成访问镜像仓库。镜像仓库(阿里云仓库:http://maven.aliyun.com/nexus/content/groups/public/) 加快jar下载 central:默认是指【中央仓库 阅读全文
posted @ 2017-01-26 11:17 N神3 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: 应用场景:projectA 依赖projectB, projectB 依赖projectC时 <dependency> <groupId>com.itear.projectC</groupId> <artifactId>projectC</artifactId> <version>0.0.1-SNA 阅读全文
posted @ 2017-01-25 14:53 N神3 阅读(28490) 评论(0) 推荐(10) 编辑
摘要: 打包:mvn package编译:mvn compile编译测试程序:mvn test-compile清空:mvn clean运行测试:mvn test生成站点目录: mvn site生成站点目录并发布:mvn site-deploy打包文件到本地仓库: mvn install 阅读全文
posted @ 2017-01-25 09:30 N神3 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 一、eclipse中maven默认仓库是当前用户下.m2/repository,需改变默认路径按照下面步骤。 步骤一:安装maven 下载:http://maven.apache.org/ 配置maven环境变量: MAVEN_HOME : D:\apache-maven-3.3.9 path :  阅读全文
posted @ 2017-01-24 16:54 N神3 阅读(3990) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 33 下一页