6.4.3 映射到视图 - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith
Version: null
6.4.3 映射到视图
You can resolve a URL to a view without a controller or action involved. For example to map the root URL/ to a GSP at the location grails-app/views/index.gsp you could use:static mappings = { "/"(view: "/index") // map the root URL }
static mappings = { "/help"(controller: "site", view: "help") // to a view for a controller }

