Jackson version is too old

后端 未结 1 896
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 20:12

I have the following build.sbt file:

name := \"myProject\"

version := \"1.0\"

scalaVersion := \"2.11.8\"

javaOptions ++= Seq(\"-Xms512M\", \"         


        
相关标签:
1条回答
  • 2021-01-18 20:58

    jackson-core and jackson-databind versions should match (at least up to the minor version, I believe).

    So remove the dependencyOverrides and have

    libraryDependencies ++= Seq(
      ...
      "com.fasterxml.jackson.core" % "jackson-databind" % "2.8.1"
    )
    

    Or specify both in dependencyOverrides

    dependencyOverrides ++= Set(
      "com.fasterxml.jackson.core" % "jackson-core" % "2.8.1"
      "com.fasterxml.jackson.core" % "jackson-databind" % "2.8.1"
    )
    

    Though I'm not sure I understand what you are trying to do; the linked question seems to say that you should used an older version (2.4.4).

    0 讨论(0)
提交回复
热议问题