Jax-ws,spring和SpringBeanAutowiringSupport [英] Jax-ws, spring and SpringBeanAutowiringSupport
本文介绍了Jax-ws,spring和SpringBeanAutowiringSupport的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尽管在我的@Webservice类中 我扩展了SpringBeanAutowiringSupport,自动装配对于Spring 2.5根本不起作用, tomcat6.
although in my @Webservice class I extend SpringBeanAutowiringSupport, autowiring simply does not work for Spring 2.5, tomcat6.
什么也没有注入.
我使用classpathcontext在main方法中测试了那些自动装配的bean,一切都很好注入了. 但不适用于jax-ws端点.
I tested those beans autowiring in main method, using classpathcontext, everything is injected fine. But not for jax-ws endpoint.
你有想法吗?
推荐答案
我猜您正在使用此配置元素:
I'm guessing that you're using this config element:
<context:annotation-config />
但是要启用对@Endpoint批注的支持,必须添加以下元素:
But to enable support for the @Endpoint annotation, you must add this element:
<context:component-scan base-package="" />
这篇关于Jax-ws,spring和SpringBeanAutowiringSupport的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文