随笔分类 - java基础
摘要:原文出处:https://blog.csdn.net/weixin_34277853/article/details/92452351 在前面的网页中的编码与乱码系列中(一、二、三、四、五),曾多次提到使用 servlet 方式构建的动态响应流,不过在那里都是直接使用字节流的方式,不过,更为常见的方
阅读全文
摘要:HttpPost postRequest = null; StringEntity input = null; HttpResponse response = null; BufferedReader br = null; String output = null; int timeout=6000
阅读全文
摘要:String directory = NoScanAction.class.getClassLoader().getResource("").getPath(); String rootPath1 = ServletActionContext.getServletContext().getRealP
阅读全文
摘要:方法一: // 日期用Calendar 比较方便操作, 也不用自己去处理每个月最大天数之类的问题. Calendar calendar = new GregorianCalendar(); for (int i = 0; i < 7; i++) { int year = calendar.get(C
阅读全文

浙公网安备 33010602011771号