简体   繁体   中英

How to create service method interceptor in grails?

I'd like to add some service method interceptor into my grails application. Interceptor should be a Spring managed object (it should be possible to inject whatever I want into it). and I want to specify which service/methods to intercept. As I understand it should be something like spring bean definition in 'conf/spring/resources.groovy', in other words, I'd like to use typical Spring approach. Strange, but I can't find any info on this topic.

请查看有关AOP的Spring文档,以及这篇文章http://www.objectpartners.com/2010/10/19/grails-plumbing-spring-aop-interceptors/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM