04、添加 com.fasterxml.jackson.dataformat -- jackson-dataformat-xml 依赖报错

Correct the classpath of your application so that it contains a single, compatible version of com.fasterxml.jackson.dataformat.xml.XmlMapper

04、添加 com.fasterxml.jackson.dataformat -- jackson-dataformat-xml 依赖报错_第1张图片

解决:

改用其他版本,我没写版本号,springboot自己默认的是 2.11.4 版本
04、添加 com.fasterxml.jackson.dataformat -- jackson-dataformat-xml 依赖报错_第2张图片

成功启动项目
04、添加 com.fasterxml.jackson.dataformat -- jackson-dataformat-xml 依赖报错_第3张图片

能成功返回 xml 的响应
04、添加 com.fasterxml.jackson.dataformat -- jackson-dataformat-xml 依赖报错_第4张图片

你可能感兴趣的:(2023bug,spring,boot)