Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Filters not loading with initial run-app in Grails 3.0.4/5 #9221
Filters seem to not be picked up when a grails 3 app starts.
Notice that no Filters are registered. Now lets rename the file/class so spring-loaded picks it up -
Now you can see the filter was registered and is working. To prove it's not something with the original class, lets rename it back to MyFilters:
I know Filters are deprecated, but should still work and needed for porting 2.x apps :)
referenced this issue
Sep 4, 2015
The issue in your example app is that the filters are in
Filters should now go in
Works, thanks. It makes sense after knowing this, but I think a mention in the upgrading doc would be helpful, since spring-loaded does pick it up when the class is changed, which lead me to a lot of confusion. (and there is no mention of this convention in the docs I can find)
I'll create a PR on grails-docs with a note on filters. Thanks for looking into it.