Improve exception message in AopContext.currentProxy()

Closes gh-24321
This commit is contained in:
lixiaolong11000 2020-01-04 22:45:00 +08:00 committed by Sam Brannen
parent b0e4b7e29c
commit 047eefd2e2
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ public final class AopContext {
Object proxy = currentProxy.get();
if (proxy == null) {
throw new IllegalStateException(
"Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available.");
"Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available. " +
"Also Check AopContext.currentProxy() invoke in the origin thread.");
}
return proxy;
}