grails-core: Controller beforeInterceptor is not called in grails 3.0.1
When making a trivial beforeInterceptor in a controller, the interceptor is not called.
Example controller in simple helloworld app:
package helloworld3
class HelloController {
def beforeInterceptor = {
println "*** beforeInterceptor ***"
}
def index() {
render "Hello world!!"
}
}
When running the app with gradle bootRun and going to the http://localhost:8080/hello/index , the browser shows “Hello world!!” as expected but the debug string from the beforeInterceptor is not writen in the terminal running the “gradle bootRun” command.
An analog grails 2.5.0 app runs as expected and prints out from the beforeInterceptor.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 25 (10 by maintainers)
@jasenj1 I understand your frustration. This happens to all of us at one time or another. But try to understand that for the couple hours you spent, the Grails team spends 10x that and are still playing catchup from the Pivotal bail. So a little of the documentation may get behind at times.
But we are all in this together… and they will always have your back. 😃