Giovani Grifante
Giovani Grifante

Reputation: 472

Get a reference of current proxy in Spring boot

Anyone know how to get a reference of the current proxy in a class with @Service annotation in Spring boot?

AopContext.currentProxy() doesn't work, it says that need to set exposeProxy to true, but I've no idea how to do it with Spring boot.

Upvotes: 1

Views: 2109

Answers (1)

Cleto Gadelha
Cleto Gadelha

Reputation: 1101

There was a bug related but it was resolved on Spring 4.3.1.

Now you can set @EnableAspectJAutoProxy(exposeProxy=true)

Upvotes: 3

Related Questions