首页 > 其他分享 >springmvc中web.xml模板

springmvc中web.xml模板

时间:2022-10-24 20:55:37浏览次数:53  
标签:xml web do springmvc 模板 myweb



myweb
org.springframework.web.servlet.DispatcherServlet

    <init-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:springmvc.xml</param-value>
    </init-param>

    <!--tomcat启动后创建Servlet对象-->
    <load-on-startup>1</load-on-startup>

</servlet>

<servlet-mapping>
    <servlet-name>myweb</servlet-name>
    <url-pattern>*.do</url-pattern>
</servlet-mapping>

标签:xml,web,do,springmvc,模板,myweb
From: https://www.cnblogs.com/hellohui/p/16822754.html

相关文章