jdk9的环境在springmvc在运行时候javax/xml/bind/JAXBException in Java 9

maven项目的话:

<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.3.0</version>
</dependency>
<dependency>
    <groupId>org.eclipse.persistence</groupId>
    <artifactId>eclipselink</artifactId>
    <version>2.7.0</version>
</dependency>
如果是idea下边这个不用添加,如果是下边要添加,错误原因主要是找不到需要的包!
posted @ 2018-01-21 21:44  printException  阅读(1134)  评论(0编辑  收藏  举报