开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜