
J2EE
过了爱做梦的年纪s
归零
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
getOutputStream() has already been called for this response 错误异常的处理
1.今天在做导出excel导出的项目中遇到了这个问题:网上搜了一下,参考地址:http://www.cnblogs.com/jorton/archive/2012/05/04/2482609.html原因是因为在导出的时候使用response.getOutputStream() 和 response.getWriter()冲突。2.解决方法 在输出流使用完后,加入下原创 2015-10-29 14:41:12 · 1793 阅读 · 0 评论 -
SM整合出错:ClassCastException: tk.licer.model.Role_$$_javassist_0 cannot be cast to javassist.util.proxy
1.问题spring整合hibernate做web开发时,web.xml中配置openSessionInView,使用hibernateTemplate调用load方法实现延迟加载(lazy_load).openSessionInView定义 openSessionInView org.springframework.orm.hibernate4.support.原创 2016-05-23 16:01:00 · 1627 阅读 · 0 评论 -
Mysql 设置超时重连 autoReconnect=true
1需求昨天在vps测试机上部署了web Demo(SH+mysql)程序,今天访问发现挂了.吓得我赶快把log down下来压压惊.org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested excep原创 2016-06-05 13:23:47 · 26190 阅读 · 5 评论