![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ssh
xuebu_123
这个作者很懒,什么都没留下…
展开
-
怎么获得hql的查询的count(*)
1.int count = ((Number)query.iterate().next()).intValue(); 2.Long l = (Long) query.list().get(0);原创 2013-08-22 18:31:17 · 562 阅读 · 0 评论 -
Tomcat:IOException while loading persisted sessions: java.io.EOFException解决
严重: IOException while loading persisted sessions: java.io.EOFException 严重: Exception loading sessions from persistent storage 原因是tomcat对硬盘的session读取失败,彻底解决办法一下:将work下面的文件清空,主要是*.ser文件,或者只是删除掉sessi转载 2013-08-22 20:10:59 · 381 阅读 · 0 评论 -
关于struts2 ajax报java.sql.SQLException: 访问层需要具体实施: getConnectionPoolInfo
解决方法,把action要传到页面的属性不要自动填充 比如: private List liStreet = new ArrayList();liStreet =servlice.findStreetById(district); 就会报错 改成: private List liStreet = new ArrayList(); List li = ss.findStre原创 2013-08-19 17:05:17 · 1011 阅读 · 0 评论 -
java.lang.IllegalStateException: getOutputStream() has already been called for this response
在ssh的验证码,ServletOutputStream s = ServletActionContext.getResponse() .getOutputStream(); 发现这个问题,网上找了好久 action 返回null是正解 参考:http://www.360doc.com/content/12/0612/13/1967709_217660151.shtml原创 2013-09-05 12:14:28 · 835 阅读 · 0 评论