从xsd文件生成一些类后,这些类是错误的.@xmlElementRef与required ="false"一起使用,并且不允许该属性.我的.xsd我正在使用:
<xs:schema xmlns:ns="http://shop.pau.softm.com/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://shop.pau.softm.com/xsd">
<xs:element name="checkOrder">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="order" nillable="true" type="ns:Order"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="Order">
<xs:sequence>
<xs:element minOccurs="0" name="addressNumber" type="xs:int"/>
<xs:element minOccurs="0" name="auftragsNummer" type="xs:int"/>
<xs:element minOccurs="0" name="companyNumber" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="condition" nillable="true" type="ns:Condition"/>
<xs:element minOccurs="0" name="currency" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="customerId" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="customerReference" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="deliveryAddress" nillable="true" type="ns:Address"/>
<xs:element minOccurs="0" name="deliveryConditions" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="deliveryType" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="endCustomerId" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="endCustomerReference" nillable="true" …Run Code Online (Sandbox Code Playgroud) 如果操作系统是Windows,下面给出的哪一个是Java编写的最佳方法?
1)
String f = "some\\path\\file.ext"; Run Code Online (Sandbox Code Playgroud)
2) String f = "some/path/file.ext"; Run Code Online (Sandbox Code Playgroud)
3) String f = "some"+File.separator+"path"+File.separator+"file.ext"; Run Code Online (Sandbox Code Playgroud)
4) String f = new StringBuilder("some").append(File.separator).append("path").append(File.separator).append("file.ext").toString(); Run Code Online (Sandbox Code Playgroud) 它是使用camel-cxf 部署在Apache Karaf 上的Web 服务。我能够在 URL localhost:8181/cxf 中看到 cxf 服务列表,其中部署了一些 rest 和 soap 服务。
问题是只要任何请求带有关键字“服务”,它就会返回服务列表。例如 url http://localhost:8181/abcd/services返回 cxf 服务列表页面而不是处理实际请求。
我从http://cxf.apache.org/docs/jaxrs-services-description.html 了解到这是因为 CXFServet 的 service-list-path 的默认值是 services。
这是我的问题。如果我想覆盖它,我应该在 etc/org.apache.cxf.osgi.cfg 中设置这个属性。这个 cfg 文件不在我的 karaf 的 etc 文件夹下。如果我手动创建此属性文件,需要采取哪些步骤?我需要安装哪些功能?或者创建这个配置文件就足够了?
感谢你的帮助 !
我正在寻找一种在 settings.xml 中设置系统代理设置的方法。如果代理服务器不需要身份验证,我可以将用户名和密码标签留空吗?我怎样才能做到这一点?
我找不到来自 maven 的任何文件:http : //maven.apache.org/guides/mini/guide-proxies.html
java ×3
apache-camel ×1
apache-karaf ×1
cxf ×1
jaxb ×1
jaxb2 ×1
maven ×1
maven-3 ×1
spring ×1
xsd ×1