zoukankan      html  css  js  c++  java
  • web.xml中配置——配置springmvc

    <servlet>

        <servlet-name>springmvc</servlet-name>   

        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

        <!-- 指定加载的配置文件 ,通过参数contextConfigLocation加载-->

        <init-param>

            <param-name>contextConfigLocation</param-name>

            <param-value>classpath:applicationContext-web.xml</param-value>

        </init-param>

      </servlet> 

      <servlet-mapping>

        <servlet-name>springmvc</servlet-name>

        <url-pattern>*.do</url-pattern>

      </servlet-mapping>

  • 相关阅读:
    CCS
    CCS
    CCS
    CCS
    CCS
    CCS
    CCS
    CCS
    Java之内部类
    Java之回调模式和ThreadLocal
  • 原文地址:https://www.cnblogs.com/cn-chy-com/p/11118456.html
Copyright © 2011-2022 走看看