jboss/wildfly中的com.fasterxml.jackson deploy.war spring boot错误

jckbn6z7  于 2021-07-13  发布在  Java
关注(0)|答案(1)|浏览(379)

错误[org.springframework.boot.web.servlet.support.errorpagefilter](默认任务-22)由于异常[com.fasterxml.jackson.annotation.jsonformat$value.haslenient()z]从请求[/api/method]转发到错误页:java.lang.nosuchmethoderror:com.fasterxml.jackson.annotation.jsonformat$value.haslenient()zcom.fasterxml.jackson.datatype.jsr310.deser.jsr310datetimedeserializerbase.createContext(jsr310datetimedeserializerbase)。java:104)在com.fasterxml.jackson.databind.deserializationcontext.handleSecondaryContextalization(反序列化上下文)。java:685)在com.fasterxml.jackson.databind.deserializationcontext.findcontextualvaluedeserializer(反序列化上下文)。java:446)

pbwdgjma

pbwdgjma1#

-创建名为jboss-deployment-structure.xml的文件-在位置web inf/jboss-deployment-structure.xml中添加下面的块拷贝文件

<?xml version='1.0' encoding='UTF-8'?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<exclusions>
<module name="com.fasterxml.jackson.core.jackson-annotations" />
<module name="com.fasterxml.jackson.core.jackson-core" />
<module name="com.fasterxml.jackson.core.jackson-databind" />
<module name="com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider" />
<module name="org.jboss.resteasy.resteasy-jackson2-provider" />
<module name="org.slf4j" />
</exclusions>
</deployment>
</jboss-deployment-structure>

img-预览maven项目

相关问题