2016年3月9日

摘要: 解决方案 看下我的 session.setAttribute(UserInfo.USERINFO, userinfo); session.setMaxInactiveInterval(SESSION_TIME); 没有用到sessionlistener, 页面上会检查是否存在该session 解决方 阅读全文
posted @ 2016-03-09 10:44 james-roger 阅读(717) 评论(0) 推荐(0) 编辑

2016年3月2日

摘要: http://jingyan.baidu.com/article/e2284b2b60aceee2e6118d3b.html 阅读全文
posted @ 2016-03-02 14:29 james-roger 阅读(126) 评论(0) 推荐(0) 编辑

2016年1月27日

摘要: private Class<T> entityClass ; entityClass = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]; 阅读全文
posted @ 2016-01-27 15:09 james-roger 阅读(495) 评论(0) 推荐(0) 编辑

2016年1月26日

摘要: Top 50个快速高效学习 Java 的在线资源 http://codecloud.net/top-50-java-online-6297.html 程序员必看的书之Java程序员 http://www.open-open.com/news/view/4c6ed1 学习网址 http://www.j 阅读全文
posted @ 2016-01-26 10:40 james-roger 阅读(131) 评论(0) 推荐(0) 编辑
摘要: jsp:JSON.stringify(params):params:表示数组servlet:Store store = (Store) JSONObject.toBean(JSONObject.fromObject(areaStr), Store.class); 阅读全文
posted @ 2016-01-26 10:19 james-roger 阅读(112) 评论(0) 推荐(0) 编辑

2016年1月20日

摘要: 12 阅读全文
posted @ 2016-01-20 14:05 james-roger 阅读(163) 评论(0) 推荐(0) 编辑

2016年1月13日

摘要: 1 having 是对于聚合函数而言的(max,min,avg,count,) 阅读全文
posted @ 2016-01-13 16:43 james-roger 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 在web.xml中配置error-page在web.xml中有两种配置error-page的方法,一是通过错误码来配置,而是通过异常的类型来配置,分别举例如下:一. 通过错误码来配置error-page 500 /error.jsp 上面配置了当系统发生500错误(即服... 阅读全文
posted @ 2016-01-13 11:10 james-roger 阅读(909) 评论(0) 推荐(0) 编辑
摘要: 第一步:在applicationContext.xml配置: classpath:/config/*.properties 第二步:建立配置文件内容:例... 阅读全文
posted @ 2016-01-13 10:08 james-roger 阅读(309) 评论(0) 推荐(0) 编辑

2016年1月8日

摘要: DigestUtils.md5Hex(authkey)org.apache.commons.codec.digest.DigestUtils; 阅读全文
posted @ 2016-01-08 16:38 james-roger 阅读(152) 评论(0) 推荐(0) 编辑