Spring3.0+struts2+Hibernate3.5 整合操作
Spring + struts + hibernate 整合操作: 搭建开发环境
1 配置文件
4 个配置文件
struts.xml
beans.xml
xxx.hbm.xml
web.xml
2 jar
注意jar包冲突
struts2-spring-plugin.jar(必需)
----------------------------------------------------------------- Spring + Struts2整合
1 开发 Service 在spring配置文件中进行配置
2 Struts2开发步骤
1) 在web.xml 配置单控制器
2) 开发Action
a implements Action execute
b Spring配置文件 注入Service
<bean id="regAction" class="com.ssh.RegAction" scope="prototype"> 每次都创建一个新的对象
<property name="userService">
<ref local="userService"/>
</property>
</bean>
c struts.xml 配置
<action name="reg" class="regAction">
<result name="success"></result>
</action>
3 创建Spring工厂
ApplicationContext ctx = new ClassPathXmlApplicationContext ("/day6/transaction2/beans.xml");
web.xml 配置使用
org.springframework.web.context.ContextLoaderListener <context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/beans.xml</param-value>
</context-param>
myEclipse10.6整合struts2.1+spring3.0+hibernate3.3_计算机软件及应用_IT/计算机_专业资料。myEclipse10.6整合struts2.1+spring3.0+hibernate3.3,里面有一...
Spring2.5+Struts1.3.8+Hibernate3.0整合Spring2.5+Struts1.3.8+Hibernate3.0整合隐藏>> SSH 的整合知识: 的整合知识 知识: 通常的配置步骤:(这些步骤都...
Strut2+Hibernate3+Spring2.5集成(详细带操作图示)_计算机软件及应用_IT/... struts2+hibernate3.2+s... 14页 免费 整合struts1.2+spring2... 10页...
struts2+hibernate+spring整合实例教程_完美测验_计算机软件及应用_IT/计算机_专业资料。完美测验,100%成功Struts2 与 Spring、 Hibernate 三者整合的过程示例:示例...
MyEclipse6.0: MyEclipse6.0: struts2+spring2+hibernate3.1 整合实 例 http://blog.sina.com.cn 2007 年 12 月 03 日 10:45 只言情不说爱 最近在搞一...
Spring2.5+Struts2+Hibernate3+Oracle整合示例_IT/计算机_专业资料。MyEclipse5.5 JDK 1.6 Java EE 5.0 Tomcat6.0 Struts2.1.6 Spring2.5.6 Hibernate...
MyEclipse8.5整合(Struts2+Spring+Hibernate)_从业资格考试_资格考试/认证_教育专区。详细介绍MyEclipse8.5M1下如何快速整合Struts2,Spring,Hibernate,准确描述了整合...
struts2+hibernate3.2+spring2.5集成步骤_IT/计算机_专业资料。struts2+hibernate3.2+spring2.5集成步骤Struts2+Hibernate3.2+Sprint2.5 整合 Hibernate 使用...
表达式语言方面: Struts1 中整合了 EL, 但是 EL 对集合和索引的支持不强, ...因为本人开发的是购物网站 系统所以,我采用,struts1.2+hibernate3.0+spring2....
spring和hibernate整合操作步骤_计算机软件及应用_IT/计算机_专业资料。spring和... Struts2,Spring与Hibern... 15页 免费 ssh2整合案例和详解 18页 1下载券 ...
热门文档