SpringMVC spring-servlet.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:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
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/util http://www.springframework.org/schema/util/spring-util-3.2.xsd">
<!-- 扫描控制器包-->
<context:component-scan base-package="com.controller" />
<mvc:annotation-driven></mvc:annotation-driven>
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
</bean>
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
<!-- <property name="prefix" value="/view/" /> -->
<property name="suffix" value=".jsp" />
</bean>
</beans>
最新文章
- Java Thread 多线程 介绍
- SQL SERVER 2005 DBCC PAGE命令说明
- mongodb 基本指令学习 (2)
- POJ水题 1298
- POJ 2109
- BZOJ 2196: [Usaco2011 Mar]Brownie Slicing( 二分答案 )
- NOIP2010-普及组复赛模拟试题-第一题-手机
- Class类与Java反射
- MySQL的bigint类型
- BZOJ2702 : 金融风暴
- 跑python用ThinkPad好还是MacBook好?
- 经典算法冒泡排序java版
- 如何让Domain里的其他系统通过DC来进行外网的DNS解析
- Github ——转
- js数据绑定(模板引擎原理)
- 【转】CentOS下MySQL忘记root密码解决方法
- CS小分队第二阶段冲刺站立会议(5月28日)
- (转)Android性能优化——工具篇
- Reveal CocoaPods的使用
- dedecms添加新模型