我对 grails 很陌生,并且已将UrlMappings.groovy
文件自定义如下:
"/"(controller:'sampleGroovy',action:'index').
但是当我运行应用程序时,它仍然会命中默认的 grailsindex.gsp
文件,而不是我配置的默认控制器。
有人可以让我知道我哪里出错了。
我对 grails 很陌生,并且已将UrlMappings.groovy
文件自定义如下:
"/"(controller:'sampleGroovy',action:'index').
但是当我运行应用程序时,它仍然会命中默认的 grailsindex.gsp
文件,而不是我配置的默认控制器。
有人可以让我知道我哪里出错了。