-
Jan 18th, 2011, 02:17 PM
#1
How specify a bean when @Autowire for DAO is NOT used?
In a Hibernate with SpringJPA I setup Spring by using the @AutoWire annotation for the DAO service implementation.
Assume I want to avoid the @Autowire Annotation: How do I have to specify
the bean in applicationContext.xml then?
It must be something like:
<bean id=myService" class="com.aaa.bbb.ccc.service.testADDImpl">
<property name="dao" ref="myService"/>
....
</bean>
Can anybody help?
Is there a SpringJPA specialized sub-forum?
Peter
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules