2011-12-23 47 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