web.xml都是继承tomcat中web.xml
DispatcherServlet配置/之后会拦截所有的请求,它和/*的区别是,/*优先级更高,/则优先级低。如何理解这个点。
例如tomcat的xml中其实默认配置了两个servlet。
<!-- The mapping for the default servlet -->
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- The mappings for the JSP servlet -