Commit a7a7732f authored by 赵啸非's avatar 赵啸非

异常日志前端展示添加

parent 43da1129
......@@ -60,6 +60,9 @@ public class AccessMessageConsumerListener {
List<AccessLogEntity> collect = messages.stream().map(message -> {
try {
//String json = JSONUtil.formatJsonStr(new String(message, StandardCharsets.UTF_8));
log.info("message:{}",message);
AccessLogEntity entity = JSON.parseObject(message, AccessLogEntity.class);
entity.setId(IdUtil.getSnowflake(0, 1).nextId());
entity.setCreateUserId(1L);
......
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