3

我正在使用发音并希望从文档中排除某些 jaxb 生成的类。如何才能做到这一点?

是否可以通过 xsd 添加 org.codehaus.enunciate.XmlTransient 注释?

提前致谢。

4

2 回答 2

5
  <?xml version="1.0"?>
  <enunciate ...>

    <api-classes>
      <exclude pattern="com.mycompany.nonvisible.**"/>
    </api-classes>
    ...
  </enunciate>
于 2012-10-08T23:13:03.713 回答
0

尝试通过使用注释来排除该类@com.webcohesion.enunciate.metadata.Ignore(请参阅用户指南)。这对我有用。

通过在 enunciate.xml 中列出 JAXB 类,我也没有成功。

于 2017-07-26T11:22:34.557 回答