2011-12-23 13 views

答えて

13

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. 
+0

それは私のために働いていませんでした。 メインプロジェクトを実行すると、エラーが発生します。commons.DefaultGrailsApplication - Grailsアプリケーションをロードしようとすると、[MyPluginUrlMappings]クラスが見つかりませんでした。スキップします。 –

+4

@CassioLandimクラスの名前は、 'UrlMappings'ではなく、' MyPluginUrlMappings'でなければなりません。 –

+1

@CassioLandimこのコメントをいただきありがとうございます。私はそれがクラスであり、クラス定義を持っていることを忘れていました... – Spider

関連する問題