grails weblogic urlMapping “/"失效或这提示找不到index页面

grails 2.0.4 在urlMapping设置默认执行的页面,代码:
class UrlMappings {

    static mappings = {
     "/"(controller:"system") //默认跳转到系统的controller
     "404"(view:"404")
   }
}
在tomcat没有题,可是切换到了weblogic默认就进入404页面了,通过查找和调试,终于发现原因了,注视了404的验证后,就提示找不到index页面,原来是weblogic默认访问index页面,"/"拦截不到,更改后:"
class UrlMappings {

    static mappings = {
     "/"(controller:"system") //默认跳转到系统的controller
     "/index.gsp"(controller:"system")
     "404"(view:"404")
   }
}

你可能感兴趣的:(grails weblogic urlMapping “/"失效或这提示找不到index页面)