You might try the following:
<!-- Activates mapping of @Controller -->
<context:component-scan base-package="org.appfuse.web"/>
<!-- Activates @Autowired for Controllers -->
<context:annotation-config/>
I believe the first detects @Controller, @Service and @Repository.
Matt
On 12/26/07, Le Anh Tuan <[EMAIL PROTECTED]> wrote:
> Hello,
> I have upgraded to AppFuse 2.0.1 with Spring 2.5 and found that Spring
> 2.5 annotation feature is great. I want to change this bean's XML
> definition below to spring annotation:
>
> <bean id="personManager"
> class="com.myapp.service.impl.PersonManagerImpl">
> <constructor-arg>
> <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate"
> autowire="byType">
> <constructor-arg value="com.myapp.model.Person" />
> </bean>
> </constructor-arg>
> </bean>
>
> I configured the class like this:
>
> @Service
> public class PersonManagerImpl extends GenericManagerImpl<Person, Long>
> implements PersonManager {
> PersonDao personDao;
> @Autowired
> public PersonManagerImpl(PersonDao personDao) {
> super(personDao);
> this.personDao = personDao;
> }
>
>
> But it does not work!.
> Hope any one help!. Thank you very much
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]