兼容 JDK 11
Contents
[
Hide
]
Aspose.Email EWSClient API 完全兼容 JDK 11,且可在 JDK 11 环境下使用。使用 JDK 11 时,需要添加 JAXB 依赖。其他 Aspose.Email API 正常工作,无需额外依赖。
JAXB API 被视为 Java EE API,因此在 Java SE 9 的默认类路径中已不再包含。到了 Java 11,它们已从 JDK 中完全移除。
应在项目中添加以下 Maven JAXB 依赖:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.messaging.saaj</groupId>
<artifactId>saaj-impl</artifactId>
<version>1.5.0</version>
</dependency>