SpringMVC配置多个servlet.xml文件

<servlet>
		<servlet-name>dmt</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		<init-param>
			<param-name>contextConfigLocation</param-name>
			<param-value>/WEB-INF/springweb/*-servlet.xml</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>
	


	<servlet-mapping>
		<servlet-name>dmt</servlet-name>
		<url-pattern>*.do</url-pattern>  <!--匹配跳转的后缀名-->
	</servlet-mapping>

你可能感兴趣的:(springMVC)