Grails throws a 404 error when canceling a page request with a filter
问题 I have a filter: class MyFilters { def filters = { before = { render(view: "/test") return false } } } This works great on pages where I'm using a controller to handle the request, showing the contents of test.gsp instead of the page I requested. However, when I try to access a page that maps directly to a GSP file, I get a 404 error. Changing the render to simply render "test" produces the same results, as does commenting it out and just leaving the return false . 回答1: Grails is a MVC