1<jaxws:endpoint id="helloWorld" implementor="demo.spring.HelloWorldImpl" address="/HelloWorld" />
这里,其实现方式就没法再引用其它的spring bean了。若想引用spring bean,方式有两种:
方式一:
<bean name = "implementorBean" *** />
<jaxws:endpoint id="helloWorld"
implementor="#implementorBean"
address="/HelloWorld" />
方式二:
<jaxws:endpoint id="theImplementor"
implementorClass="demo.spring.HelloWorld"
address="http://localhost:8080/simpleWithAddress">
<jaxws:implementor>
<bean ref="implementorBean"/>
</jaxws:implementor>
</jaxws:endpoint>
web service
最新推荐文章于 2020-10-30 09:11:05 发布