In our corporate application, we would like to pose problems with cross-sections, such as logging, metrization as aspects. We already have some ready-made aspect tips (from our existing java application), but I donβt find a way to integrate aspectj with Grails.
I already know beforeInterceptor and afterInterceptor , but this needs to be done in all controllers and services, is there an easier way to do this.
My preferred approach would be to create annotations like @Metrics for any method in my grails application, and it should get some recommendations. Someone did this, any links / resources / examples would be nice.
source share