In 6.4.6 Mapping Wildcards is written that you exclude URIs like this:
static excludes = ["/images/**", "/css/**"]
But this didn’t work for me. Looking at the source code (
UrlMappingsFilter) I found out, that the exclude is no wildcard pattern matching and only a startsWith matching:
for (String excludePattern:excludePatterns){
if (uri.equals(excludePattern)||
(excludePattern.endsWith("*")&&
excludePattern.substring(0,excludePattern.length()-1).
regionMatches(0,uri,0,excludePattern.length()-1))){
processFilterChain(request, response, filterChain);
return;
}
}
So the correct way is with one asterisk:
static excludes = ["/images/*", "/css/*"]