码迷,mamicode.com
首页 > 编程语言 > 详细

Spring配置文件

时间:2014-06-05 00:23:44      阅读:296      评论:0      收藏:0      [点我收藏+]

标签:spring   spring mvc   

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">


<!-- Enables the Spring MVC @Controller programming model -->
<mvc:annotation-driven />

<context:component-scan base-package="com.demo2do.sample.web.controller" />

<!-- Handles HTTP GET requests for /static/** by efficiently serving up static resources in the ${webappRoot}/static/ directory -->
<mvc:resources mapping="/static/**" location="/static/" />


<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">  
        <property name="prefix" value="/" />  
        <property name="suffix" value=".jsp" />  
    </bean>  


</beans>

Spring配置文件,布布扣,bubuko.com

Spring配置文件

标签:spring   spring mvc   

原文地址:http://blog.csdn.net/zzjmay/article/details/27207195

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!