springmvc头部配置文件
2016-01-23 19:35
381 查看
<?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"
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">
<!-- 启用spring mvc 注解 -->
<context:annotation-config />
<!-- 配置注解的扫描范围 -->
<context:component-scan base-package="com.zyf.mvc"></context:component-scan>
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<!-- 配置前缀 -->
<property name="prefix" value="/WEB-INF"></property>
<!-- 配置后缀 -->
<property name="suffix" value=".jsp"></property>
</bean>
</beans>
<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"
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">
<!-- 启用spring mvc 注解 -->
<context:annotation-config />
<!-- 配置注解的扫描范围 -->
<context:component-scan base-package="com.zyf.mvc"></context:component-scan>
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<!-- 配置前缀 -->
<property name="prefix" value="/WEB-INF"></property>
<!-- 配置后缀 -->
<property name="suffix" value=".jsp"></property>
</bean>
</beans>
相关文章推荐
- EGit /用户指南
- Java Sftp上传下载文件
- 《Java虚拟机原理图解》5. JVM类加载器机制与类加载过程
- Java中的流
- 使用spring @Scheduled注解执行定时任务
- Spring+Dubbo+MyBatis+Linner分布式Web开发环境搭建
- Springmvc学习笔记(4)之复杂参数类型绑定、校验、数据回显和异常处理
- 关于在eclipse中创建servlet
- [Java 并发] Java并发编程实践 思维导图 - 第二章 线程安全性
- java中有三种移位运算符
- eclipse Hibernate Tools插件错误:Fetching children of Database
- 记问题排查:java进程未正常退出
- Java中 "abc" + '/'和"abc" + "/"的区别
- 【MOOC】Java语言程序设计进阶—第0周
- JAVA基础笔记2--认识Eclipse IDE
- struts-2.3.24+spring-framework-4.1.6.RELEASE+hibernate-release-4.3.10.Final 集成开发
- spring Security oAuth2例子分析
- JAVA设计模式(DESIGN PATTERNS IN JAVA)读书摘要 第1部分接口型模式——第4章 外观(Facade)模式
- SpringMVC 多文件上传
- Spring 3.x jar 包详解 与 依赖关系