spring *-servlet.xml
2015-10-27 10:21
363 查看
<?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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.2.xsd "> <!-- 启动扫描所有的controller --> <context:component-scan base-package="com"/> <mvc:annotation-driven /> <!--注解说明 --> <context:annotation-config /> <!-- 启动Spring MVC的注解功能,完成请求和注解POJO的映射 请求映射 --> <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" /> <!-- 静态资源配置 --> <mvc:default-servlet-handler /> <!-- 用户拦截器配置 --> <mvc:interceptors> <mvc:interceptor> <mvc:mapping path="/**" /> <bean class="com.intercepter" /> </mvc:interceptor> </mvc:interceptors> </beans>
相关文章推荐
- spring *-servlet.xml
- spring *-servlet.xml
- spring *-servlet.xml
- spring *-servlet.xml
- spring *-servlet.xml
- java基础
- 浅析Java中CountDownLatch用法
- Eclipse快捷键
- java 快捷工具,如何清理不需要的引用
- 解决eclipse卡死问题
- java.util.vector中的vector的用法
- java打印堆栈信息
- Java编程思想第四版读书笔记——第十章 内部类
- java打印堆栈信息
- 深入详解Struts2——异常处理
- JUNIT的用法笔记
- java中this关键字的应用
- Java操作Zip压缩文件遇到的编码问题
- Java:单例模式的七种写法
- 出现java.lang.UnsupportedClassVersionError 错误的原因