Spring Boot : javax.xml.bind.JAXBException

How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9

I have some code that uses JAXB API classes which have been provided as a part of the JDK in Java 6/7/8. When I run the same code with Java 9, at runtime I get errors indicating that JAXB classes can not be found at runtime.

The JAXB classes have been provided as a part of the JDK since Java 6, so why can Java 9 no longer find these classes?

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容