关于JAXB自动代码生成的小问题。
对于评论部分,它将生成如下的一些模式:
<element name="partner_system_priority" type="{http://www.w3.org/2001/XMLSchema}int"/>
我想知道JAXB为什么不制作&gt;作为&amp; gt?
BR,
添
答案 0 :(得分:2)
此评论是为javadoc
工具生成的
因此,在javadoc生成之后,此注释将成为HTML页面的一部分
只需在HTML报告中用less then
替换第一个<
(<
)符号即可。
两者
<element name="partner_system_priority"
type="{http://www.w3.org/2001/XMLSchema}int"/>
和
<element name="partner_system_priority"
type="{http://www.w3.org/2001/XMLSchema}int"/>
将被浏览器解释为
<element name="partner_system_priority"
type="{http://www.w3.org/2001/XMLSchema}int"/>
所以,没有理由做多余的替换