SSM框架配置文件
2016-03-03 13:16
375 查看
1、Spring
web.xml
<?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"> <!-- The definition of the Root Spring Container shared by all Servlets and Filters --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:spring-config.xml</param-value> </context-param> <!-- Spring监听器 --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <!-- 防止Spring内存溢出监听器 --> <listener> <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class> </listener> <!-- Processes application requests --> <servlet> <servlet-name>springMVCServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <!-- 修改spring mvc 表示层默认配置文件的路径 --> <param-value>classpath:spring-mvc.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> <async-supported>true</async-supported> </servlet> <!-- url-pattern=/*必须加* --> <servlet-mapping> <servlet-name>springMVCServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <!-- spring mvc security config --> <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> <async-supported>true</async-supported> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
web.xml
相关文章推荐
- wnidows下svn服务搭建
- 介绍三个Angular学习参考网站
- python函数基础知识学习
- 起头
- Android studio导入工程很卡及下载网络jar很慢问题总结
- Android studio导入工程很卡及下载网络jar很慢问题总结
- [BZOJ 4380] POI 2015 Myjnie
- 《Linux系统链接知识的总结及实践》
- java为什么要设置环境变量
- 【C++】函数缺省参数的作用
- 计划书
- Android性能优化之AsyncTask
- Radio button 使用方法总结
- 每日5min分享-接口测试框架
- 金字塔培训
- Android仿微信发图片的样式,做IM的同学的病有救了
- 析构函数
- 持续可用与CAP理论 – 一个系统开发者的观点
- @FormParam、@PathParam、@QueryParam、@HeaderParam、@CookieParam、@MatrixParam说明
- 一台机器上部署多个tomcat 服务