Solution:
可以使用 springframework 提供的 SpringBeanAutowiringSupportimport org.springframework.web.context.support.SpringBeanAutowiringSupport;
@WebService()
public class Trade extends SpringBeanAutowiringSupport {// 在 WebService 中使用 Spring @Autowired
@Resource
WebServiceContext wsCtxt;
@Autowired
private IGameOrderService gameOrderService;
Reference :
http://static.springsource.org/spring/docs/2.5.x/reference/remoting.html詳見 17.5.5 那一段
沒有留言:
張貼留言