javax.xml.bind 在 Java 9 中去了哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/47155866/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 09:30:36  来源:igfitidea点击:

Where did javax.xml.bind go in Java 9?

javajavaxjavax.xml

提问by Dmitri Nesteruk

I tried migrating my project from JDK 1.8 to Java 9, but it wouldn't compile. My project uses a lot of javax.xml.bind.annotationclasses and it seems they are missing. Were they moved somewhere or deprecated?

我尝试将我的项目从 JDK 1.8 迁移到 Java 9,但它无法编译。我的项目使用了很多javax.xml.bind.annotation类,似乎它们丢失了。他们被转移到某个地方还是被弃用了?

回答by javauser

This is marked for removal( and moved to module java.xml.bind), you can refer to documentation here: Java Docs API

这被标记为删除(并移至模块 java.xml.bind),您可以参考此处的文档: Java Docs API