This hack is extremely awkward, please consider refactoring your code or using AspectJ weaving. You may feel warned, here is the solution
AopContext.currentProxy()
More Related Contents:
- Performance impact of using aop
- Spring AOP for non spring component
- Why does self-invocation not work for Spring proxies (e.g. with AOP)?
- Spring autowired bean for @Aspect aspect is null
- spring creates proxy for wrong classes when using aop class level annotation
- AspectJ pointcut expression match parameter annotations at any position
- Error creating bean with name ‘org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0’ defined in ServletContext resource
- Self-invocation behaviour in @Configuration vs. @Component classes
- Spring: register advice programmatically at runtime
- Spring Boot not serving static content
- Scope ‘session’ is not active for the current thread; IllegalStateException: No thread-bound request found
- Spring @Transactional read-only propagation
- Disable all Database related auto configuration in Spring Boot
- How to set active spring 3.1 environment profile via a properites file and not via an env variable or system property
- Spring @Value annotation in @Controller class not evaluating to value inside properties file
- can I include user information while issuing an access token?
- automatically add header to every response
- Where to put static files such as CSS in a spring-boot project?
- Mapstruct – How can I inject a spring dependency in the Generated Mapper class
- Using RestTemplate in Spring. Exception- Not enough variables available to expand
- spring autowiring not working from a non-spring managed class
- Spring batch scope issue while using spring boot
- How to mock Spring WebFlux WebClient?
- Spring: Difference of /** and /* with regards to paths
- Looking for a Simple Spring security example [closed]
- Where to handle Exceptions in Spring Applications
- Where should I place my Vaadin 10+ static files?
- Is it possible to invalidate a spring security session?
- Unable to connect to Command Metric Stream. in Hystrix Dashboard issue
- How to add a custom health check in spring boot health?