mirror of https://gitee.com/stylefeng/roses
【7.1.6】【scanner】资源扫描的json带上class信息
parent
ed907d1dae
commit
1b56ce2966
|
@ -64,6 +64,7 @@ import cn.stylefeng.roses.kernel.system.modular.resource.mapper.SysResourceMappe
|
||||||
import cn.stylefeng.roses.kernel.system.modular.resource.pojo.ResourceTreeNode;
|
import cn.stylefeng.roses.kernel.system.modular.resource.pojo.ResourceTreeNode;
|
||||||
import cn.stylefeng.roses.kernel.system.modular.resource.service.SysResourceService;
|
import cn.stylefeng.roses.kernel.system.modular.resource.service.SysResourceService;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||||
|
@ -410,7 +411,7 @@ public class SysResourceServiceImpl extends ServiceImpl<SysResourceMapper, SysRe
|
||||||
|
|
||||||
// 进行post请求,汇报资源
|
// 进行post请求,汇报资源
|
||||||
HttpRequest httpRequest = HttpUtil.createPost(devopsReportUrl);
|
HttpRequest httpRequest = HttpUtil.createPost(devopsReportUrl);
|
||||||
httpRequest.body(JSON.toJSONString(devOpsReportResourceParam));
|
httpRequest.body(JSON.toJSONString(devOpsReportResourceParam, SerializerFeature.WriteClassName));
|
||||||
httpRequest.setConnectionTimeout(Convert.toInt(DEVOPS_REPORT_CONNECTION_TIMEOUT_SECONDS * 1000));
|
httpRequest.setConnectionTimeout(Convert.toInt(DEVOPS_REPORT_CONNECTION_TIMEOUT_SECONDS * 1000));
|
||||||
try {
|
try {
|
||||||
HttpResponse execute = httpRequest.execute();
|
HttpResponse execute = httpRequest.execute();
|
||||||
|
|
Loading…
Reference in New Issue