URLMappings
Purpose
TheURLMappings plugin configures Grails' URL Mapping infrastructure.Examples
An exampleUrlMapping class:class UrlMappings { static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
} "/"(view:"/index")
"500"(view:'/error')
}
}Description
Refer to the section on URL Mapping in the Grails user guide which details Grails' URL mappings.Configured Spring Beans:grailsUrlMappingsHolderBean- A UrlMappingsHolderFactoryBean factory bean that constructs a grails.web.mapping.UrlMappingsHolder instance that stores all of the URL mappings.urlMappingsTargetSource- A Spring HotSwappableTargetSource used in auto-reloading to automatically update URL mappings when changed.grailsUrlMappingsHolder- A Spring ProxyFactoryBean that proxies onto the actualUrlMappingsHolderinstance using theHotSwappableTargetSource
