중요개념

파일경로(filepath) **/*

bum1988 2020. 2. 21. 09:20

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