我正在创建一个Grails插件,我想为其添加自己的UrlMappings。使用该插件的应用程序会忽略插件源中的UrlMappings.groovy文件,因此应在哪里定义它们?

最佳答案

参见http://grails.org/doc/latest/guide/single.html#plugins:Notes on excluded Artefacts

In addition, although UrlMappings.groovy is excluded
you are allowed to include a UrlMappings definition with
a different name, such as MyPluginUrlMappings.groovy.

07-26 00:35