I am developing a GWT-Spring-Hibernate project and I want to use Spring Autowired annotation in GWT Service Servlet but my autowired annotated service is not injected. it is null. Is there a configuration detail that I missed?
I add
<context:annotation-config />
<context:component-scan base-package="com.org" />
to my ApplicationContext.xml and I have annotated my service as @Service(“myService”)
@Autowired
MyService myService; // This is null so WHY?
Well, the class where the
@Autowiredannotation resides should also be in the spring context (i.e. annotated with@Component), but I doubt it will work if it is a GWT (i.e. client-side) class.