Access bean name in custom method interceptor
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.
精彩评论