摘要: 1.servletConfig 2.servletContext (1).servletContext.getRealPath("/a.text")获取当前web应用的某一文件在服务器上的绝对路径, (2).servletContext.getContextPath()获取当前web运用的名称。 ( 阅读全文
posted @ 2018-07-30 11:27 左右逢源 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1.枚举 1.1枚举用来限制取值范围的 public enum Color{ RED("红色"),GREEN("绿色"),BLUE("兰色") ; private Color(String name){ this.setName(name) ; } private String name ; // 阅读全文
posted @ 2018-07-30 11:26 左右逢源 阅读(99) 评论(0) 推荐(0) 编辑
摘要: INSERT INTO SELECT:目标表要存在 INSERT INTO PLAT_ORG ("ID", "OFFICE_ID", "ORG_CODE", "ORG_NAME", "ORG_LEVEL", "ISEND", "PARENT_ID", "AREA_ID") SELECT ID,OFF 阅读全文
posted @ 2018-07-30 11:25 左右逢源 阅读(1098) 评论(0) 推荐(0) 编辑