웹 스프링
[스프링] Spring: Difference of /** and /* with regards to paths
binarywoo
2021. 3. 24. 21:17
servlet-context.xml에서 /* 와 /** 차이점이 궁금해졌다:
Ant path style patterns 을 이용한 방법이라 한다. ( stackoverflow.com/questions/2952196/ant-path-style-patterns )
? : 1개의 문자와 매칭 (matches single character)
* : 0개 이상의 문자와 매칭 (matches zero or more characters)
** : 0개 이상의 디렉토리와 파일 매칭 (matches all files / directories)
stackoverflow.com/questions/12569308/spring-difference-of-and-with-regards-to-paths
- ? matches one character
- * matches zero or more characters
- ** matches zero or more 'directories' in a path
2021/03/31:
servlet-context.xml :
interceptor에서 exclude-mapping