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
Where did javax.xml.bind go in Java 9?
提问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.annotation
classes 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