随笔分类 -  java基础

摘要:原文出处:https://blog.csdn.net/weixin_34277853/article/details/92452351 在前面的网页中的编码与乱码系列中(一、二、三、四、五),曾多次提到使用 servlet 方式构建的动态响应流,不过在那里都是直接使用字节流的方式,不过,更为常见的方 阅读全文
posted @ 2021-08-05 11:20 月亮那么僵 阅读(179) 评论(0) 推荐(0)
摘要:HttpPost postRequest = null; StringEntity input = null; HttpResponse response = null; BufferedReader br = null; String output = null; int timeout=6000 阅读全文
posted @ 2020-04-27 09:16 月亮那么僵 阅读(2300) 评论(0) 推荐(0)
摘要:String directory = NoScanAction.class.getClassLoader().getResource("").getPath(); String rootPath1 = ServletActionContext.getServletContext().getRealP 阅读全文
posted @ 2020-03-18 16:23 月亮那么僵 阅读(1802) 评论(0) 推荐(0)
摘要:方法一: // 日期用Calendar 比较方便操作, 也不用自己去处理每个月最大天数之类的问题. Calendar calendar = new GregorianCalendar(); for (int i = 0; i < 7; i++) { int year = calendar.get(C 阅读全文
posted @ 2017-10-20 10:13 月亮那么僵 阅读(370) 评论(0) 推荐(0)