程序包com.sun.xml.internal.bind.marshaller不存在
需要引入的依赖
<dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-stdlib</artifactId><version>1.3.50</version></dependency><dependency><groupId>com.sun.xml.bind</groupId><artifactId>jaxb-impl</artifactId><version>2.2.4-1</version></dependency>
需要引入的包
import com.sun.xml.bind.marshaller.CharacterEscapeHandler;
如果引入的是下面这个包则会报:程序包com.sun.xml.internal.bind.marshaller不存在
import com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler;