Autowired .. more than one?
I use
<context:component-scan base-package="com.package.dao"/> (Spring 3)
and in my controllers with @Autowired the DAO I need will automatically load. It works just fine. The problem is that I need more than one DAO manager. How can i do I tried with @Qualifier , but I'm not sure about the dao-manager name. className does not work
can someone help me?
Thank!
+3
1 answer
See the spring documentation :
@Autowired . , , bean, ; bean id
...
, , , @Autowired - bean @Qualifier. JSR-250 @Resource, , .
+4