<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>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-10-05
猜你喜欢
  • 2021-05-16
  • 2022-12-23
  • 2021-10-06
  • 2021-11-20
  • 2022-02-16
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案