我正在使用发音并希望从文档中排除某些 jaxb 生成的类。如何才能做到这一点?
是否可以通过 xsd 添加 org.codehaus.enunciate.XmlTransient 注释?
提前致谢。
<?xml version="1.0"?>
<enunciate ...>
<api-classes>
<exclude pattern="com.mycompany.nonvisible.**"/>
</api-classes>
...
</enunciate>
尝试通过使用注释来排除该类@com.webcohesion.enunciate.metadata.Ignore
(请参阅用户指南)。这对我有用。
通过在 enunciate.xml 中列出 JAXB 类,我也没有成功。