摘要: 需要在Tomcat的设置中为: on ‘update‘ action:当用户主动执行更新的时候更新 快捷键:Ctrl + F9 on frame deactication:在编辑窗口失去焦点的时候更新 你可以根据自己的需求进行设置,我这里两个都有设置。 如果你的工程中没有 Update classe 阅读全文
posted @ 2017-07-24 09:54 路迢迢 阅读(2718) 评论(0) 推荐(0)
摘要: 触发描述 方法 用法 点击 onclick="method();" 变换 onchange="testChange();" 双击 ondblclick="testChange();" 内部移动触发 onmousemove="testMove();" 鼠标指针进入 onmouseover="testM 阅读全文
posted @ 2017-07-21 10:11 路迢迢 阅读(221) 评论(0) 推荐(0)
摘要: package enum_test; public enum Shrubbery { GROUND, CRAWLING, HANGING } package enum_test; public class EnumClass { public static void main(String[] args) { System.out.println(Shr... 阅读全文
posted @ 2017-07-17 20:39 路迢迢 阅读(349) 评论(0) 推荐(0)
摘要: java根据文件流判断文件类型(后缀名) 阅读全文
posted @ 2017-07-04 17:56 路迢迢 阅读(42900) 评论(2) 推荐(1)
摘要: /** * 校验时间格式,正确则返回true * @param xxx * @return */ private static boolean checkDateFormat (String xxx) { String correctDateFormat = "^((\\d{2}(([02468][048])|([13579][26]))[\\-\\/\\s]?((((0?[13578])... 阅读全文
posted @ 2017-06-29 20:12 路迢迢 阅读(398) 评论(0) 推荐(0)
摘要: for(String key: map.keySet()) { System.out.println(key+":"+map.get(key)); } 阅读全文
posted @ 2017-06-28 10:04 路迢迢 阅读(191) 评论(0) 推荐(0)
摘要: 所需jar: commons-beanutils-1.8.0.jarcommons-collections-3.2.1.jarcommons-lang-2.5.jarcommons-logging-1.1.1 (1).jarcommons-logging-1.1.1.jarezmorph-1.0.6 阅读全文
posted @ 2017-06-28 09:53 路迢迢 阅读(1020) 评论(0) 推荐(0)
摘要: struts2+ajax+jquery ajax交互 index.jsp action: AjaxAction.java JsonAction.java JsonAction.java stryts.xml 阅读全文
posted @ 2017-05-31 11:15 路迢迢 阅读(306) 评论(0) 推荐(0)
摘要: HQL: 阅读全文
posted @ 2017-05-31 11:12 路迢迢 阅读(300) 评论(0) 推荐(0)
摘要: create table EMP ( EMPNO NUMBER(4) PRIMARY KEY, ENAME VARCHAR2(10), JOB VARCHAR2(9), MGR NUMBER(4), HIREDATE DATE, SAL NUMBER(7,2), COMM NUMBER(7,2), DEPNO NUMBER(4) ); CREATE TABLE Dept( DEPTNO NU... 阅读全文
posted @ 2017-05-31 11:11 路迢迢 阅读(68680) 评论(0) 推荐(1)