An asterisk, both single and double, is used for wilcard url mapping .
A single asterisk will match anything at this level:
static mappings = {
"/images/*.jpg"(controller:"image")
}
A double asterisk will match any value on more than one level:
static mappings = {
"/images/**.jpg"(controller:"image")
}
// Matches /images/logo.jpg, /images/other/item.jpg and so on
? :
class UrlMappings {
static excludes = ['/css/*','/images/*', '/js/*', '/favicon.ico', '/WEB-INF/*']
static mappings = {
"/**?"(controller: 'category')
"500"(view:'/error')
"404"(view:'/notFound')
}
}