[英]What happened to @JsonSerialize in Jackson 1.9?
Looks like @JsonSerialize
annotation has gone missing in the newer versions of Jackson. 看起来
@JsonSerialize
批注在较新版本的Jackson中已丢失。 Can't find what happened to them. 找不到他们发生了什么事。 Wanted to do the following in Scala:
想要在Scala中执行以下操作:
@JsonSerialize(using=classOf[YourSerializer])
@JsonDeSerialize(using=classOf[YourDeserializer])
I imported import org.codehaus.jackson.annotate._
. 我导入
import org.codehaus.jackson.annotate._
。 When I go to compile, I get the following not found: type JsonSerialize
. 当我去编译时,
not found: type JsonSerialize
以下内容not found: type JsonSerialize
。
Where did it all go? 一切都去了哪里?
看起来好像是捆绑在新包装中。
import org.codehaus.jackson.map.annotate._
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.