标签:cloud 解决办法 vax text 手动 type nbsp 添加 项目
环境说明:
win10 + java11 + springboot 2.0.6 + spring cloud Finchley.SR2
问题原因:Java9+版本以后,JAXB默认没有加载
解决办法:手动添加jaxb模块
<dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> <version>1.1.1</version> </dependency>
Spring boot项目启动Eureka出现Type javax.xml.bind.JAXBContext not present
标签:cloud 解决办法 vax text 手动 type nbsp 添加 项目
原文地址:https://www.cnblogs.com/atman/p/13583279.html