摘要: public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { response.setCharacterEncoding("u 阅读全文
posted @ 2018-06-28 18:08 wlhebut 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Calendar instance = Calendar.getInstance();instance.clear();instance.setTime(new Date());instance.set(Calendar.HOUR_OF_DAY,23);instance.set(Calendar.M 阅读全文
posted @ 2018-06-13 14:02 wlhebut 阅读(286) 评论(0) 推荐(0) 编辑
摘要: ArrayList<PatrolOper> patrolOpers = new ArrayList<>(); String jsonData = null; File jsonFile = null; try { jsonFile = ResourceUtils.getFile("classpath 阅读全文
posted @ 2018-06-04 17:28 wlhebut 阅读(1995) 评论(0) 推荐(0) 编辑
摘要: <td content="planEnergy"><fmt:formatNumber value="${gg.planEnergy}" pattern="#,#00.0#"/></td> 阅读全文
posted @ 2018-05-30 16:01 wlhebut 阅读(217) 评论(0) 推荐(0) 编辑
摘要: function getOrgansid() { url="<%=basePath%>/rest/bsc/organ/selectOrganSidAllList"; $.ajax({ type:"POST", url:url, dataType:"json", contentType: "appli 阅读全文
posted @ 2018-05-30 12:25 wlhebut 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 以下是学习过程中查询的资料,别人总结的资料,比较容易理解(站在各位巨人的肩膀上,望博主勿究) 创建型抽象工厂模式 http://www.cnblogs.com/java-my-life/archive/2012/03/28/2418836.html工厂方法 http://www.cnblogs.co 阅读全文
posted @ 2018-04-03 09:19 wlhebut 阅读(137) 评论(0) 推荐(0) 编辑
摘要: $.ajax contentType 和 dataType , contentType 主要设置你发送给服务器的格式,dataType设置你收到服务器数据的格式。 在http 请求中,get 和 post 是最常用的。在 jquery 的 ajax 中, contentType都是默认的值:appl 阅读全文
posted @ 2018-02-01 23:20 wlhebut 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 以前没有亲自添加过索引,今天添加了一下,果真强大。几百倍的速度提升。 SELECT * FROM tbl_sys_menu m WHERE m.SID in (SELECT mr.MENU_SID FROM tbl_sys_mrole mr WHERE mr.ROLE_SID in (SELECT 阅读全文
posted @ 2018-01-11 13:13 wlhebut 阅读(180) 评论(0) 推荐(0) 编辑
摘要: hashmap 与hashtable 很类似,主要区别是hashtable 有用synchronized进行线程同步,hashmap没有。然而,建议少用 hashtable,在单线程中,无需做线程控制,运行效率更高;在多线程中,synchronized会造成线程饥饿,死锁,可以用concurrent 阅读全文
posted @ 2018-01-10 15:07 wlhebut 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 方案:添加onclick事件,动态增加input。 阅读全文
posted @ 2018-01-10 11:55 wlhebut 阅读(304) 评论(0) 推荐(0) 编辑