defaultAction
目的 Purpose
Specifies the default action to be executed if none is specified in the URI.This is unnecessary if you have an action named "index" and want it to be the default, since that happens automatically.使用例 Examples
class BookController { static defaultAction = "list" def list() { [books: Book.list()] } def show() { [bookInstance: Book.get(params.id)] } }