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

异常日志前端展示添加

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