Skip to content

Instantly share code, notes, and snippets.

@thiagofa
Created December 21, 2019 03:14
Show Gist options
  • Save thiagofa/ef9a40d495016cb2581add41b5cbde1b to your computer and use it in GitHub Desktop.
Save thiagofa/ef9a40d495016cb2581add41b5cbde1b to your computer and use it in GitHub Desktop.
Dependências para resolver ClassNotFoundException (javax.xml.bind.JAXBException) com Spring Security OAuth2 e Java 11
<!--
Spring Security OAuth2 com Java 11+ lança exception:
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
Em um projeto com Spring Boot, adicione as dependências abaixo para resolver o problema.
Leia também: https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist
-->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${javax-jaxb.version}</version>
</dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment