<servlet>
<servlet-name>cug</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>cug</servlet-name>
<url-pattern>/LoginServlet/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>cugtest</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>cugtest</servlet-name>
<url-pattern>/LoginServlet/</url-pattern>
</servlet-mapping>
我想在spring web.xml中映射两个或更多DispatcherServlet,但是我无法做到这一点。