【发布时间】:2017-12-05 02:32:06
【问题描述】:
我是 Scala 和 IntelliJ 的新手。我正在尝试编写一个 JSON 程序,但它在下面有编译错误。我正在使用json4s-core_2.9.1-3.0.0。
错误:(37, 14) Class com.fasterxml.jackson.core.JsonParseException not 找到 - 继续使用存根。错误:(37, 14) 类 com.fasterxml.jackson.core.JsonProcessingException 未找到 - 继续存根。错误:(37, 14) 类 com.fasterxml.jackson.core.JsonGenerationException 未找到 - 继续存根。
在我的设置文件中,我有:
scalaVersion := "2.12.4"
libraryDependencies += "org.json4s" %% "json4s-jackson" % "{latestVersion}"
libraryDependencies += "com.fasterxml.jackson.core" % "jackson.core" % "{latestVersion}"
libraryDependencies += "com.fasterxml.jackson.core" % "JsonParseException" % "{latestVersion}"
libraryDependencies += "com.fasterxml.jackson.core" % "JsonProcessingException" % "{latestVersion}"
libraryDependencies += "com.fasterxml.jackson.core" % "JsonGenerationException" % "{latestVersion}"
会出什么问题?任何想法都值得赞赏。谢谢!
【问题讨论】:
标签: scala intellij-idea