Is it possible to find complete lazy-init example.
I have following problem. I have lazy initiated bean defined like
But I've got error during application initialization:Code:<bean id="target" class="example.Target" lazy-init="true"> </bean> <bean id="myBean" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="targetSource"> <bean class="org.springframework.aop.target.LazyInitTargetSource"> <property name="targetBeanName" value="target"/> </bean> </property> </bean> <bean id="bean2" class="example.TestBean"> <property name="exampleRef" ref="myBean"/> </bean>
How it is possible to fix it?Code:Failed to convert property value of type [$Proxy1] to required type [example.Target] for property 'exampleRef';


Reply With Quote