1.使用myEclipse导入:struts、hibernate、spring
2.手动拷贝spring.jar到lib目录下。
3.applicationContext.xml:
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation"
value="classpath:hibernate.cfg.xml">
</property>
</bean>
<!-- enable the configuration of transactional behavior based on annotations -->
<tx:annotation-driven transaction-manager="transactionManager"/>
<!-- a PlatformTransactionManager is still required -->
<!-- 定义TransactionManager -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager" >
<property name="sessionFactory" ref="sessionFactory" />
</bean>
</beans>
4. struts-config.xml:
<action-mappings>
<!-- <action path="/testAction" type="org.springframework.web.struts.DelegatingActionProxy" />-->
</action-mappings>
<message-resources parameter="com.automic.struts.ApplicationResources" />
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml"/>
</plug-in>
分享到:
相关推荐
MyEclipse2014搭建ssh框架傻瓜式一步一步截图搭建
Myeclipse8.5下搭建SSH框架(图解)Struts2.1+Spring3.0+Hibernate3.3
myeclipse搭建SSH框架图解,myeclipse搭建SSH框架图解myeclipse搭建SSH框架图解myeclipse搭建SSH框架图解
简单MyEclipse搭建SSH框架登录实例,内容非常详尽,很适合初学者入门
MyEclipse8.5快速搭建SSH框架,Struts2.1+Spring3.0+Hibernate3.3
使用myeclipse快捷搭建SSH2项目
用myeclipse8.6搭建ssh框架步骤.doc(图文并茂)
MyEclipse搭建SSH框架 Struts2.1+Spring3.0+hibernate3.3
简单MyEclipse搭建SSH框架登录实例。
myeclips10下搭建SSH框架,有图解,详细明了.
Myeclipse下搭建SSH框架.pdf
NULL 博文链接:https://helloworlda.iteye.com/blog/1120724
我自己认真整理的笔记,绝对精华。...6.打开Myeclipse自带的Hibernate 7.添加Hibernate 8.右击表格,表格全选添加,不然后面myeclips可能会因为自身的bug只能添加一次,最好之前表都已经建好 9.修改配置(结合一个小案例)
MyEclipse 2013+SSH框架+Oracel 10g框架的搭建 ,主要讲oracle怎样在Myeclipse中使用
里面有我做公司项目前用MyEclipse搭建ssh框架测试通过后的一个项目,此项目添加了aop和事务支持,有完整的action测试; 还有自己做的3到4页的MyEclipse搭建SSH的傻瓜式教程,还有oracle数据库连接引擎的配置的图片...
使用 Myeclipse工具 搭建的 SSH框架,可作为模板参考
MyEclipse6.0 SSH的框架搭建开发程序MyEclipse6.0 SSH的框架搭建开发程序MyEclipse6.0 SSH的框架搭建开发程序MyEclipse6.0 SSH的框架搭建开发程序MyEclipse6.0 SSH的框架搭建开发程序MyEclipse6.0 SSH的框架搭建开发...
Myeclipse10下搭建SSH框架--struts-spring-hibernate
充分的利用myeclipse的功能搭建ssh编程框架!初学者可以看看。