Commit 4cd4f3b4 authored by 赵啸非's avatar 赵啸非

异常日志前端展示添加

parent 3ebd3776
......@@ -62,16 +62,11 @@ public class AccessMessageConsumerListener {
List<AccessLogEntity> collect = messages.stream().map(message -> {
try {
AccessLogEntity entity =null;
log.info("message:{}", message);
entity = JSON.parseObject(message, AccessLogEntity.class);
entity.setId(IdUtil.getSnowflake(0, 1).nextId());
entity.setCreateUserId(1L);
entity.setCreateTime(new Date());
//String json = JSONUtil.formatJsonStr(new String(message, StandardCharsets.UTF_8));
return entity;
} catch (Exception e) {
log.info("反序列化异常", e);
......
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