随笔分类 -  面试

摘要:实体引用 字符&amp; &&lt; <&gt; >&quot; "&apos; <?xml version="1.0" encoding="UTF-8"?><root> <attachment id="638a89f6a7644f7c8516ab8fe1bb8d0e" attachType="remotefile"> <fileName var_type="String" /> 阅读全文
posted @ 2013-06-20 17:29 jshen 阅读(363) 评论(0) 推荐(0)
摘要:SimpleDateFormat sdf = new SimpleDateFormat("M月dd日"); Calendar calendar = Calendar.getInstance(); //得到日历 calendar.setTime(calendar.getTime());//把当前时间赋给日历 calendar.add(Calendar.DAY_OF_MONTH, -1); //设置为前一天 Date dBefore = calendar.getTime(); //得到前一天的时间 阅读全文
posted @ 2013-06-20 16:50 jshen 阅读(163) 评论(0) 推荐(0)
摘要:Error 500--Internal Server Errorjava.lang.NegativeArraySizeException at com.jspsmart.upload.SmartUpload.upload(SmartUpload.java:218) at jsp_servlet._qqda._main._tj._daoexl.__daoexl._jspService(__daoexl.java:209) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.St 阅读全文
posted @ 2013-06-19 14:05 jshen 阅读(460) 评论(0) 推荐(0)
摘要:SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM月dd日"); Calendar calendar = Calendar.getInstance(); //得到日历 calendar.setTime(calendar.getTime());//把当前时间赋给日历 calendar.add(Calendar.DAY_OF_MONTH, -1); //设置为前一天 Date dBefore = calendar.getTime(); //得到前一天的时间 System.out.println(sdf.format(dBef 阅读全文
posted @ 2013-05-22 16:02 jshen 阅读(133) 评论(0) 推荐(0)
摘要:例子中将讲解 1.权限表示 2.权限判断 3.添加权限 4.取消权限[java]view plaincopyprint?publicclassTest{/***@paramargs*/publicstaticvoidmain(String[]args){/***四种权限,当前定义为int,以下二进制表示只取后四位作说明*///添加intc=1;//...0001//查询intr=2;//...0010//修改intu=4;//...0100//删除intd=8;//...1000/****大家可以观察四种权限的二进制表示的规律,都是2的N次方,*就表示本身,添加权限有最后一位为其它为0,查询倒 阅读全文
posted @ 2013-05-20 14:55 jshen 阅读(841) 评论(0) 推荐(0)
摘要:返回值 2public static int getNum(){ try{ return 1; }catch(Exception e){ e.printStackTrace(); }finally{ return 2; } } 阅读全文
posted @ 2013-05-04 17:37 jshen 阅读(110) 评论(0) 推荐(0)