Spingmvc拦截器配置路径

https://blog.csdn.net/Logo_OO/article/details/80569979

<!-- 对所有的请求拦截使用/** ,对某个模块下的请求拦截使用:/myPath/* -->  
            <mvc:mapping path="/**" />  
例如:

那么请求拦截的路径为:<mvc:mapping path="/login"/>
如果这样不行的话就对某个模块下的请求拦截使用:/**/*
如:

请求拦截路径为:<mvc:mapping path="/user/login"/>
user前面还需要/
--------------------- 
作者:丶瞳丿 
来源:CSDN 
原文:https://blog.csdn.net/qq_37250305/article/details/79866339 
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/qq_37993823/article/details/85121288