Spring: Difference of /** and /* with regards to paths

前端 未结 1 1334
忘了有多久
忘了有多久 2020-12-04 05:38

What\'s the difference between two asterisks instead of one asterisk when we refer to paths?

Earlier I was debugging my Spring 3 project. I was trying to add a .swf

相关标签:
1条回答
  • 2020-12-04 06:02

    This is a path pattern that used in Apache ant, spring team implement it and use it throughout the framework.

    For reference, see javadoc of AntPathMatcher (newest javadoc seems to have problem, so I link an old one).

    Back to your problem, according to the document, it only have 3 rules:

    1. ? matches one character
    2. * matches zero or more characters
    3. ** matches zero or more 'directories' in a path
    0 讨论(0)
提交回复
热议问题