5
在斯卡拉2.9我会使用import scala.annotation.target.field
注释的情况下类:斯卡拉案例类的注释在2.10中改变了吗?
case class UserAuth(
@([email protected])("email")
val email: String,
@([email protected])("password")
val password: String
)
在2.10我去编译一个类,我需要使用import scala.annotation.meta.field
但突然它抛出编译器错误像疯了似的。这是Scala案例类注释的正确用法,还是可以恢复为简单的@JsonProperty("email")
?
+2。我已经提出了问题和答案。谢谢。 –