简体   繁体   English

Maven中的Beans.xml

[英]Beans.xml in maven

I am very new to maven, i am having a project which contains more than one service. 我对Maven非常陌生,我有一个包含多个服务的项目。 Can we use multiple jaxws:endpoint in beans.xml. 我们可以在beans.xml中使用多个jaxws:endpoint吗?

For Example: 例如:

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">

<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

**<jaxws:endpoint id="accountSnapshot" implementor="AccountSnapshot" address="/AccountSnapshot" wsdlLocation="classpath:wsdl/ser/service/rs/AccountSnapshot/1.0/AccountSnapshot.wsdl">

<jaxws:endpoint id="accountSnapshot1" implementor="AccountSnapshot1" address="/AccountSnapshot" wsdlLocation="classpath:wsdl/ser/service/rs/AccountSnapshot1/1.0/AccountSnapshot1.wsdl">**

        <jaxws:properties>
            <entry key="schema-validation-enabled" value="false" />
        </jaxws:properties>

</jaxws:endpoint>

</beans>

是的,您当然可以在beans.xml中具有多个jaxws:endpoint元素...但是,正如注释所建议的,此问题与maven无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM