首页 > 编程语言 > 详细

springmvc.xml

时间:2020-03-12 17:18:09      阅读:67      评论:0      收藏:0      [点我收藏+]
<?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:mvc="http://www.springframework.org/schema/mvc"
       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-4.1.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd
">

    <!--开启mvc的注解功能-->
    <mvc:annotation-driven></mvc:annotation-driven>

   <!--开启扫描,将com.blb下面添加注解的类加入IOC容器中--> <context:component-scan base-package="com.blb"></context:component-scan>    <!--设置视图解析器前缀跟后缀--> <bean id="jstlView" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value=""></property> <property name="suffix" value=".jsp"></property> </bean> </beans>

 

springmvc.xml

原文:https://www.cnblogs.com/Tsugar/p/12470115.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!