Commit 7c0a4fe1 by guominglei

添加序列化类型

parent fcd452e0
......@@ -13,6 +13,8 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import static com.alibaba.fastjson.serializer.SerializerFeature.WriteClassName;
/**
* @author guo_m
*/
......@@ -53,7 +55,7 @@ public class ApiNodeServiceImpl implements ApiNodeService {
jobTaskScheduleMapper.saveJobTaskSchedule(schedule);
RunLog runLog = RunLog.builder().isEnd(false).runLog("等待服务器分配资源").build();
stringRedisTemplate.convertAndSend(runId, JSON.toJSONString(runLog));
stringRedisTemplate.convertAndSend(runId, JSON.toJSONString(runLog, WriteClassName));
return runId;
}
......
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