ssh框架的整合(struts-2.5.5+spring-4.3.4+hibernate-5.2.4)
来源:互联网 发布:ios5.0.1软件下载 编辑:程序博客网 时间:2024/06/04 22:11
ssh框架的整合(struts-2.5.5+spring-4.3.4+hibernate-5.2.4)1.jdk-1.8 tomcat7的环境下2.创建web项目3.导包(struts+spring+hibernate)4.在src创建struts.xml 和 spring.xml(applicationContext.xml) struts.xml头添加几个常用属性(可不加) <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" "http://struts.apache.org/dtds/struts-2.5.dtd"> <struts> <!-- 禁用动态方法访问 --> <constant name="struts.enable.DynamicMethodInvocation" value="false" /> <!-- 配置成开发模式 --> <constant name="struts.devMode" value="true" /> </struts> spring.xml <?xml version="1.0" encoding="UTF-8" ?> <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:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> </beans>5.配置web.xml 5.1 添加struts2过滤器 <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> 5.2 注册spring监听器 <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:spring.xml</param-value> </context-param>
0 0
- ssh框架的整合(struts-2.5.5+spring-4.3.4+hibernate-5.2.4)
- SSH : struts、spring、hibernate等框架的整合
- 三大框架的整合技术 SSH spring,hibernate,struts;
- SSH框架搭建过程---之Struts整合Spring框架(4)
- SSH(Spring+Struts+Hibernate)框架学习之ajax技术和struts的整合
- 整合SSH Struts+spring+hibernate
- Struts+Spring+Hibernate三大框架(SSH)怎样整合
- ssh(Struts+spring+Hibernate)三大框架整合-简述
- SSH框架——整合Demo(Struts、Spring、Hibernate)
- 浅谈ssh(struts,spring,hibernate三大框架)整合的意义及其精髓
- 浅谈ssh(struts,spring,hibernate三大框架)整合的意义及其精髓
- 浅谈ssh(struts,spring,hibernate三大框架)整合的意义及其精髓
- 浅谈ssh(struts,spring,hibernate三大框架)整合的意义及其精髓
- Struts+Spring+Hibernate框架整合
- Spring、Hibernate、Struts框架整合
- 新版SSH框架整合.有DEMO[附源代码](Spring 3.1.2 + Struts 2.3.4 + BoneCP0.7.1 + Hibernate 4.1.4)
- SSH(spring+hibernate+struts)框架
- SSH框架spring整合hibernate
- Java 线程(一)----线程安全与不安全
- ResultSet是load到内存里还是只是维护一个Cursor
- jquery判断禁止输入汉字
- Android 防止按钮控件被重复点击.
- 数据结构与算法 求最大子序列
- ssh框架的整合(struts-2.5.5+spring-4.3.4+hibernate-5.2.4)
- 初识Unity 3D——TrialRenderer、LineRenderer、AduioClip
- UML总结之(用例图)
- Java线程(二)----线程同步synchronized和volatile
- 关于windows下使用webkit或chrome浏览器内核总结(***)
- 哈尔滨理工大学全国邀请赛A题(dp)
- linux网络编程中要注意信号量
- Kafka入门经典
- Borg Maze poj 3026