开发者

Access bean name in custom method interceptor

开发者 https://www.devze.com 2022-12-20 23:53 出处:网络
I want to write bean name and method execute开发者_运维百科d in database so decide to create an custom interceptor. However, I am not able to access the bean name.

I want to write bean name and method execute开发者_运维百科d in database so decide to create an custom interceptor. However, I am not able to access the bean name.

I found ExposeBeanNameAdvisors may be one of the solution, but not able to find a point to set the name.

Anyone have the ideas about this? Many thanks!!


You'll need to make your beans to implement a BeanNameAware interface.

0

精彩评论

暂无评论...
验证码 换一张
取 消