grails - Grails 插件如何添加自己的 URLMappings?

标签 grails plugins configuration url-mapping

我正在创建一个 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/

相关文章:

unit-testing - 如何对使用springSecurityService的 Controller 进行单元测试?

hibernate - 在 GORM 中查询关联的子查询

c++ - 如何从 QByteArray 使用 QPluginLoader 加载插件

vim - 在 vim for clojure 中导航到下一个表单的移动快捷方式

plugins - 报告辅助功能插件结果

grails - Grails 域中的枚举

grails - 可搜索的插件不允许创建目录

hadoop - 配置单元查询错误:java.io.ioexception error = 13权限被拒绝

.net - 在 OS X 上使用 BootCamp/VMWare 的 VisualStudio

c# - 无法将自定义设置文件添加到 Asp.Net Core 3.1 WebApi