Commit 68f5afbb authored by 赵威's avatar 赵威

update type

parent 95580d2b
......@@ -18,6 +18,7 @@ class UserInfoDeserializationSchema extends KafkaDeserializationSchema[UserInfo]
override def deserialize(consumerRecord: ConsumerRecord[Array[Byte], Array[Byte]]): UserInfo = {
val info = new String(consumerRecord.value(), "UTF-8")
println(info)
val userInfo: UserInfo = JSON.parseObject(info, classOf[UserInfo])
userInfo
}
......
......@@ -5,6 +5,6 @@ case class UserInfo(
action: String,
logTime: Double,
eventCn: String,
secondDemands: List[String],
projects: List[String]
secondDemands: Array[String],
projects: Array[String]
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment