zoukankan      html  css  js  c++  java
  • 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:context="http://www.springframework.org/schema/context"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    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
    http://www.springframework.org/schema/mvc
    http://www.springframework.org/schema/mvc/spring-mvc.xsd">
    <!-- 开启注解扫描器 只扫描controller层-->
    <context:component-scan base-package="cn.kgc.controller"></context:component-scan>
    <!-- 配置视图解析器-->
    <bean id="internalResourceViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix" value="/WEB-INF/"></property>
    <property name="suffix" value=".jsp"></property>
    </bean>
    <!--过滤静态资源-->
    <!-- <mvc:resources mapping="/css/**" location="/css/"></mvc:resources>-->
    <!-- <mvc:resources mapping="/img/**" location="/img/"></mvc:resources>-->
    <!-- <mvc:resources mapping="/js/**" location="/js/"></mvc:resources>-->
    <mvc:default-servlet-handler></mvc:default-servlet-handler>
    <!-- 开启springMVC注解支持-->
    <mvc:annotation-driven></mvc:annotation-driven>
    </beans>
  • 相关阅读:
    说一下AOP和IOC的实现原理
    sql 2005 express版本如果安装vs 2010则被sql 2008 express升级代替
    北京热死了
    Webservices,remoting,WCF比较一下
    CGI(拾遗)
    士农工商
    外网无法访问iis服务器
    好好整理了一下胡子
    用IIS在本机虚拟一个域名发布站点(小技巧)
    给目前自己开发的分布式系统做个定义
  • 原文地址:https://www.cnblogs.com/dingyi-boss/p/11481793.html
Copyright © 2011-2022 走看看