Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写在数据库中执行的 bean 名称和方法,因此决定创建一个自定义拦截器。但是,我无法访问 bean 名称。
我发现 ExposeBeanNameAdvisors 可能是解决方案之一,但无法找到设置名称的点。
有人对此有想法吗?非常感谢!!
您需要使您的 bean 实现 BeanNameAware 接口。