我想通过外部文件来配置。
用dubbo,给consumer打包bean和service(interface),如果含着nutz注解,就需要依赖nutz。
nutz more 好东西真多。。。
被 @wendal 秒回惊呆
看 xsd 里还是有的
<xsd:element name="one" maxOccurs="unbounded" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="target" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="field" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="key" type="xsd:string" use="required"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="many" maxOccurs="unbounded" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="target" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="field" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="key" type="xsd:string" use="required"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="manymany" maxOccurs="unbounded" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="target" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="relation" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="from" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="to" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="key" type="xsd:string"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="index" maxOccurs="unbounded" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="fields" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="unique" type="xsd:boolean"></xsd:attribute>
</xsd:complexType>
</xsd:element>
不过,依赖nutz.jar又咋了?
来自炫酷的 NutzCN