报错信息如下 java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present 解决方法 pom.xml里添加如下 <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> </dependency>