![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SSH
programloverjack
微风2019
展开
-
配置式事务:struts与spring的二种整合方式
使用两个配置文件:applicationContext.xml和hibernate.cfg.xml 1.新建web项目 2.添加hibernate支持和spring支持 (顺序可以颠倒) 3.使用工具支持进行数据库的反射操作 4.编写dao接口,实现dao接口 5.修改spring配置文件,管理持久层 6....2010-12-12 18:56:59 · 137 阅读 · 0 评论 -
异常: Error creating bean with name 'PetinfoDAO' defined in class path resource
问题描述: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PetinfoDAO' defined in class path resource [applicationContext.xml]: Initialization of bean failed; neste...2010-10-19 21:43:59 · 172 阅读 · 0 评论 -
异常:org.hibernate.LazyInitializationException
org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57) at org.hibernate.prox...2010-10-20 00:13:50 · 158 阅读 · 0 评论 -
struts1和spring整合
简要总结三种struts1.x 和 spring2.0 的整合方式,详见附件文档!原创 2011-10-19 22:36:06 · 53 阅读 · 0 评论 -
spring AOP [包括对struts动作的拦截]
第一种:使用spring AOP 对action做日志管理,可以只拦截特定的action! 虽然Spring提供很多内置拦截器,但是我将向您展示如何创建自己的拦截器并把它应用于一个Struts动作。为了使用拦截器,您需要做三件事: 1、创建拦截器; 2、注册拦截器; 3、声明在何处拦截代码。 这看起来非常简单的几句话却非常强大。例如,在清单7中,我为Struts动作创建了一个日...原创 2011-12-07 22:30:20 · 84 阅读 · 0 评论