关于web开发中 / 和 /* 和 /** 的比较
在web过滤器和spring拦截器中
/ 表示会过滤所有的路径请求 比如 /s/hello/a1 不会拦截页面 比如/s/hello/hello.jsp
/* 表示会过滤所有的路径和页面请求 即/s/hello/a1 和 /s/hello/hello.jsp都会走拦截器或过滤器 但是不能过滤子文件的请求
/** 表示 过滤所有路径和页面请求,包括子文件的请求
所以springMVC中的拦截器一般配置的/**
<!--拦截器配置-->
<mvc:interceptors>
<mvc:interceptor>
<!--包括这个请求下面的所有请求-->
<mvc:mapping path="/**"/>
<bean class="nuc.ss.config.MyInterceptor"/>
</mvc:interceptor>
</mvc:interceptors>