Commit 0a302563 authored by 赵威's avatar 赵威

update printer

parent 28744592
......@@ -18,7 +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)
// println(info)
val userInfo: UserInfo = JSON.parseObject(info, classOf[UserInfo])
userInfo
}
......
......@@ -16,6 +16,7 @@ object Redis {
contentF.foreach { seq =>
val ids = seq.map(c => c.id)
if (ids.size > 0) {
println(ids.head, ids.tail)
pRc4.lpush(key, ids.head, ids.tail)
pRc4.expire(key, 60 * 60 * 24 * 15)
}
......
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