我正在开发一个GWT-Spring-Hibernate项目,我想在GWT服务Servlet中使用Spring Autowired注释,但我的自动注释注释服务没有注入。它是空的。有没有我错过的配置细节?GWT项目中的Spring配置?
我添加
<context:annotation-config />
<context:component-scan base-package="com.org" />
我applicationContext.xml中,我已经注解我的服务为@Service( “为myService”)
@Autowired
MyService myService; // This is null so WHY?
我已经搜索并发现该项目http://code.google.com/p/spring4gwt/ 我会试一试。 – firstthumb 2009-11-19 08:42:23