1

*代表只拦截一层,**代表拦截任意层

addPathPatterns("/video/*") 

http://localhost/video/1就会进入此拦截器,而http://localhost/video/java/1就不会进入 

https://blog.csdn.net/cherlshall/article/details/80978643

 

2

此外我发现

xxx/*       可以拦截   xxx/xx   xxx/    不能拦截   xxx

xxx/**     都可以

相关文章:

  • 2021-06-20
猜你喜欢
  • 2021-12-05
  • 2021-06-10
  • 2022-12-23
  • 2022-01-09
  • 2021-07-12
相关资源
相似解决方案