Hi,
May be this a spring question but please help me...
Consider the example:
http://struts.apache.org/release/2.2.x/docs/spring-and-struts-2.html
I want to use spring anotation for defining the beans.
So I make a EditServiceInMemory class as below:
@Configuration
public class EditServiceInMemory{
@Bean
public void editService() {
}
}
Accroding to spring above should be same as:
<bean id="editService"
class="org.apache.struts.edit.service.EditServiceInMemory" />
But the anotation is not working!
Is is any thing regarding to spring plug in ?!
I also added the below in applicationContext.xml:
<context:annotation-config/>
~Regards,
~~Alireza Fattahi