I configured Spring -AOP to bean.
When I access this bean, it returns me the spring proxy class instead of the actual bean.
Is there any way to get the actual bean?
applicationContext.xml
<bean id="abc" class="abc.java" />
some.java
abc a = (abc)applicationContext.getBean("abc")
this throws out:
java.lang.ClassCastException: $Proxy19
source
share