spring mvc 页面出现302怎么解决

用springmvc的框架 controller的url为:@RequestMapping("/wx") 页面访问 http://localhost/wx 出现302
注:使用了拦截器 对所有没有在url结尾加/的url加上/并设置301,其他的url都是好的 偏偏这一个有问题,我看了下拦截器里 根本就没有获取到 http://localhost/wx 这个url 直接获取的是 http://localhost/wx/ 而其他的比如http://localhost/px 是可以获取到的 求大神啊

/wx 估计 webapp下有一个目录同名了

http://stackoverflow.com/questions/5578548/lift-webapp-has-directory-and-resource-with-the-same-name-but-gives-302

http://stackoverflow.com/questions/2815986/where-does-tomcat-append-to-directory-paths

建议使用把如jsp等放到WEB-INF下

静态资源也是,通过如下配置映射过去
<!-- 当在web.xml 中 DispatcherServlet使用 / 映射时,能映射静态资源 -->
mvc:default-servlet-handler/

<!-- 静态资源映射 -->
<mvc:resources mapping="/static/**" location="/WEB-INF/static/"/>