##SSM框架整合中Spring-mvc.xml配置约束文件

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.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context.xsd">

    
    <context:component-scan base-package="cn.liurui.controller">context:component-scan>
    
    <bean id="internalResourceViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/pages/"/>
        <property name="suffix" value=".jsp"/>
    bean>
    
    <mvc:default-servlet-handler>mvc:default-servlet-handler>
    
    <mvc:annotation-driven>mvc:annotation-driven>
beans>

 

转载于:https://www.cnblogs.com/liurui-bk517/p/11370562.html

你可能感兴趣的:(##SSM框架整合中Spring-mvc.xml配置约束文件)