SSM整合:SpringMVC XML配置文件

Posted 胡乐天

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SSM整合:SpringMVC 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: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/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="com.lt.controller"></context:component-scan>

    <!--配置注解解析器-->
    <mvc:annotation-driven></mvc:annotation-driven>

    <!--配置静态资源放行-->
    <mvc:resources mapping="/js/**" location="/js/"></mvc:resources>

</beans>

以上是关于SSM整合:SpringMVC XML配置文件的主要内容,如果未能解决你的问题,请参考以下文章

ssm整合2

SSM三大框架整合配置详解

SSM的整合

SSM框架的集体整合

SSM框架的整合

SSM整合