2011-12-23 43 views

回答

13

http://grails.org/doc/latest/guide/single.html#pluginsNotes 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. 
+0

它没有为我工作。 当我运行主项目时,我得到'ERROR commons.DefaultGrailsApplication - 尝试加载Grails应用程序时找不到类[MyPluginUrlMappings]。跳过。“# – 2012-01-24 19:15:10

+4

@CassioLandim您的课程名称必须是”MyPluginUrlMappings“而不是”UrlMappings“。 – 2013-09-24 17:41:58

+1

@CassioLandim感谢你的评论。我忘了它是一个类,并有一个类定义... – Spider 2013-12-20 12:10:43