ClassNotFoundException for javax.xml.bind.JAXBException with Spring Boot when switch to Java 9

后端 未结 6 1860
闹比i
闹比i 2020-12-14 16:00

Initialized the project using start.spring.io

Added WEB,JPA,H2 dependencies then tried to run the MainApplication.java using Jdk

6条回答
  •  青春惊慌失措
    2020-12-14 16:24

    @Ratha : For Java12 (referred to your comment) this dependency list works:

        
            <...>
            
                com.sun.activation
                javax.activation
                1.2.0
            
            
                javax.xml.bind
                jaxb-api
                2.3.1
            
            
                org.glassfish.jaxb
                jaxb-runtime
                2.3.1
                runtime
            
        
    

提交回复
热议问题