我正在创建一个 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.
关于grails - Grails 插件如何添加自己的 URLMappings?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8618651/