This is happening because your *.gsp
paths are being handled by GroovyPagesServlet
. To fix it, you need to remove GroovyPagesServlet
.:
package stackoverflow
class GroovyPagesServletMock {
}
resources.groovy
import stackoverflow.GroovyPagesServletMock
// Place your Spring DSL code here
beans = {
groovyPagesServlet(GroovyPagesServletMock)
}
I got it working this way. Hope this helps!