(Quick Reference)

URLMappings

Purpose

The URLMappings plugin configures Grails' URL Mapping infrastructure.

Examples

An example UrlMapping class:

class UrlMappings {

    static mappings = {
        "/$controller/$action?/$id?"{
            constraints {
                // apply constraints here
            }
        }

        "/"(view:"/index")
        "500"(view:'/error')
    }
}

Description

Refer to the section on URL Mappings in the Grails user guide which details Grails' URL mappings.

Configured Spring Beans: