
TECHNIC—Spring
YaLove
一直在学习���
展开
-
spring整合hibernate关于session的管理
在测试oa系统的时候,发现若连接几次数据库后,tomcat就完全没反应,打开log文件,发现系统抛出java.lang.IllegalStateException: Pool not open的异常。在网上找到了问题及解决方法如下: 在使用Spring进行系统开发的时候,数据库连接一般都是配置在Spring的配置文件中,并且由Spring来管理的。在利用Spring + Hi原创 2010-01-23 10:19:00 · 1176 阅读 · 1 评论 -
Spring+Hibernate中 the owning Session was closed
问题:could not initialize proxy - the owning Session was closed。 由于Spring控制的Hibernate的生命周期只针对数据层和服务层,而未管理到表现层,所以会出现the owning Session was closed的现象。针对这一点,我通过hibernate filter的方式来解决1.在web.xml文件中配置fil转载 2010-01-23 12:51:00 · 776 阅读 · 0 评论 -
Spring Job
定时批处理作业是J2EE企业应用里很重要的一环,用来在晚间进行财务挂账,数据转存,新闻联播等等操作。 而在Spring里,已经很好的集成了Quartz,简单到像配cron一样,在xml文件里面配一下时间就可以自动执行,不需要写一行代码。Spring对Quartz大刀阔斧的简化堪称范例,Quartz项目组也许可以学习一下。 class="org.spring原创 2011-06-23 21:07:00 · 2375 阅读 · 0 评论 -
Spring 注入的事件监听模式
public interface EventType { } public interface Event { EventType getEventType(); } public class JointSurveySubmitEvent implements Event { private JointSurvey jointSurvey; p原创 2012-01-14 14:54:41 · 2298 阅读 · 0 评论 -
spring security
xmlns:s="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springfra原创 2011-12-17 16:24:18 · 1794 阅读 · 0 评论