You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a case in Spring Boot's @SpyBean support where we need to get the original bean name from a scoped target. ScopedProxyUtils provides a method to go from the original to the scoped target name but not the other way around. Could such a method be added please?
For the time being, we'll probably do something like this:
if (ScopedProxyUtils.isScopedTarget(beanName)) {
beanName = beanName.substring("scopedTarget.".length());
}