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?

你可能感兴趣的:(Spring Boot : javax.xml.bind.JAXBException)