摘要: public class getDistance { private static final double EARTH_RADIUS = 6378137;// 赤道半径 private static double rad(double d) ... 阅读全文
posted @ 2017-12-07 14:35 游园拾忆 阅读(60) 评论(0) 推荐(0) 编辑
摘要: SpringMVC 中,文件的上传,是通过 MultipartResolver 实现的。 所以,如果要实现文件的上传,只要在 spring-mvc.xml 中注册相应的 MultipartResolver 即可。 Spring_mvc.xml配置 ... 阅读全文
posted @ 2017-12-07 14:35 游园拾忆 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 查看文件夹中的文件List: public static void selectFilesList() { File file = new File("G:/qq文件"); System.out.println("G:... 阅读全文
posted @ 2017-12-07 14:35 游园拾忆 阅读(34) 评论(0) 推荐(0) 编辑
摘要: springmvc.xml中添加配置: 工作业务: package com.mandi.springmvc.task;import org.springframework.stereotype.Compone... 阅读全文
posted @ 2017-12-07 14:34 游园拾忆 阅读(27) 评论(0) 推荐(0) 编辑
摘要: package com.mandi.system.test;import com.google.gson.JsonArray;import com.google.gson.JsonElement;import com.google.gson.JsonObj... 阅读全文
posted @ 2017-12-07 14:34 游园拾忆 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.csdn.net/xht555/article/details/43278807(详细解析) /** * 组合记号辅助类 */ private class Sign { /** * 每组元素更换频率,... 阅读全文
posted @ 2017-12-07 13:23 游园拾忆 阅读(103) 评论(0) 推荐(0) 编辑