maven+ssh+JPA配置文件
来源:互联网 发布:vb实例150例 函数调用 编辑:程序博客网 时间:2024/05/22 15:39
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name></display-name>
<welcome-file-list>
<welcome-file>/views/index.jsp</welcome-file>
</welcome-file-list>
<!-- 以下3项参数与log4j的配置相关 -->
<!-- session保存24小时 -->
<session-config>
<session-timeout>1200</session-timeout>
</session-config>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.properties</param-value>
</context-param>
<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>60000</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<!-- 对Spring容器进行实例化 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 对Spring容器进行实例化,实例化后的实例存放在application范围 -->
<!-- <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener> -->
<!--commons-fileupload组件上传时候,清理临时缓存文件 -->
<listener>
<listener-class>
org.apache.commons.fileupload.servlet.FileCleanerCleanup
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<!-- 所有的/请求都会加上 StrutsPrepareAndExecuteFilter过滤器-->
<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>
<filter>
<filter-name>struts-cleanup</filter-name>
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter-mapping>
<filter-name>struts-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name></display-name>
<welcome-file-list>
<welcome-file>/views/index.jsp</welcome-file>
</welcome-file-list>
<!-- 以下3项参数与log4j的配置相关 -->
<!-- session保存24小时 -->
<session-config>
<session-timeout>1200</session-timeout>
</session-config>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.properties</param-value>
</context-param>
<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>60000</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<!-- 对Spring容器进行实例化 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 对Spring容器进行实例化,实例化后的实例存放在application范围 -->
<!-- <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener> -->
<!--commons-fileupload组件上传时候,清理临时缓存文件 -->
<listener>
<listener-class>
org.apache.commons.fileupload.servlet.FileCleanerCleanup
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<!-- 所有的/请求都会加上 StrutsPrepareAndExecuteFilter过滤器-->
<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>
<filter>
<filter-name>struts-cleanup</filter-name>
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter-mapping>
<filter-name>struts-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
0 0
- maven+ssh+JPA配置文件
- maven工程:spring+jpa(hhibernate)(cxf服务端配置文件代码)
- JPA配置文件
- SSH框架整合的MAVEN项目之配置文件整合
- Maven搭建SSH案例(四)-----配置文件的优化
- SSH配置文件
- ssh配置文件
- SSH 配置文件
- ssh配置文件
- ssh配置文件
- SSH配置文件
- ssh配置文件
- ssh配置文件
- SSH配置文件
- SSH配置文件
- spring jpa 的配置文件
- jpa配置文件借鉴
- 【配置文件】SSH配置文件-1
- android.util.AndroidRuntimeException: requestFeature() must be called before adding content
- mysql基础知识
- 微软100题(2) min函数栈
- 《Java程序设计》第二次作业:MySQL数据库及Java操作MySQL数据库 之一
- Error: Can't access JTAG chain问题解决方法
- maven+ssh+JPA配置文件
- Numpy常用函数
- Android之boost编译
- sql - w3c_02
- 诸葛 理解产品、交互和运营
- iOS8,UILabel实现圆角
- Linux和windows之间建立ftp服务器
- python中使用第三方模块
- IntelliJ IDEA 10.5.1 引用外部Jar包