config nacos
This commit is contained in:
parent
2d3efb127a
commit
ef9707bb6a
@ -0,0 +1,28 @@
|
|||||||
|
package top.baogutang.admin.schedule;
|
||||||
|
//
|
||||||
|
//import org.springframework.stereotype.Component;
|
||||||
|
//import tech.powerjob.worker.core.processor.ProcessResult;
|
||||||
|
//import tech.powerjob.worker.core.processor.TaskContext;
|
||||||
|
//import tech.powerjob.worker.core.processor.sdk.BasicProcessor;
|
||||||
|
//
|
||||||
|
//import javax.annotation.Resource;
|
||||||
|
//
|
||||||
|
///**
|
||||||
|
// * @description: edge公告job
|
||||||
|
// * @author: nikooh
|
||||||
|
// * @date: 2023/09/27 : 10:55
|
||||||
|
// */
|
||||||
|
//@Component
|
||||||
|
//public class EdgeNoticePowerJobProcessor implements BasicProcessor {
|
||||||
|
//
|
||||||
|
// @Resource
|
||||||
|
// private NoticeSchedule noticeSchedule;
|
||||||
|
//
|
||||||
|
// @Override
|
||||||
|
// public ProcessResult process(TaskContext taskContext) throws Exception {
|
||||||
|
// noticeSchedule.edgeNotice();
|
||||||
|
// noticeSchedule.edgeXNotice();
|
||||||
|
// return new ProcessResult(Boolean.TRUE, "执行成功");
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//}
|
||||||
@ -45,8 +45,8 @@ public class NoticeSchedule {
|
|||||||
@Resource
|
@Resource
|
||||||
private DingTalkMsgPushUtils dingTalkMsgPushUtils;
|
private DingTalkMsgPushUtils dingTalkMsgPushUtils;
|
||||||
|
|
||||||
@Value("${dingtalk.baogutang.agentId}")
|
// @Value("${dingtalk.baogutang.agentId}")
|
||||||
private String agentId;
|
// private String agentId;
|
||||||
|
|
||||||
private static final String EDGE_X_REQUEST_URL = "https://art-api.edge-x.cn/api/v1/art/announcements?pageNum=1&pageSize=1";
|
private static final String EDGE_X_REQUEST_URL = "https://art-api.edge-x.cn/api/v1/art/announcements?pageNum=1&pageSize=1";
|
||||||
private static final String EDGE_REQUEST_URL = "https://art-api.heishiapp.com/api/v1/art/announcements?pageNum=1&pageSize=1";
|
private static final String EDGE_REQUEST_URL = "https://art-api.heishiapp.com/api/v1/art/announcements?pageNum=1&pageSize=1";
|
||||||
|
|||||||
@ -4,10 +4,10 @@ spring:
|
|||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 42.51.4.235:8848
|
server-addr: 222.186.131.30:8848
|
||||||
config:
|
config:
|
||||||
server-addr: 42.51.4.235:8848
|
server-addr: 222.186.131.30:8848
|
||||||
namespace: adcc486c-d6fb-465a-a4f6-3fea7234433b
|
namespace: 1877a228-6bff-46b9-a442-829473c3adc7
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
refresh-enabled: true
|
refresh-enabled: true
|
||||||
group: DEFAULT_GROUP
|
group: DEFAULT_GROUP
|
||||||
|
|||||||
@ -4,10 +4,10 @@ spring:
|
|||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 42.51.4.235:8848
|
server-addr: 222.186.131.30:8848
|
||||||
config:
|
config:
|
||||||
server-addr: 42.51.4.235:8848
|
server-addr: 222.186.131.30:8848
|
||||||
namespace: 50b370f0-6fc9-4e1d-9a19-df276cff9eac
|
namespace: fe5388cc-76bc-44d6-ba20-034f97c567e5
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
refresh-enabled: true
|
refresh-enabled: true
|
||||||
group: DEFAULT_GROUP
|
group: DEFAULT_GROUP
|
||||||
|
|||||||
@ -4,10 +4,10 @@ spring:
|
|||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 42.51.4.235:8848
|
server-addr: 222.186.131.30:8848
|
||||||
config:
|
config:
|
||||||
server-addr: 42.51.4.235:8848
|
server-addr: 222.186.131.30:8848
|
||||||
namespace: adcc486c-d6fb-465a-a4f6-3fea7234433b
|
namespace: 1877a228-6bff-46b9-a442-829473c3adc7
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
refresh-enabled: true
|
refresh-enabled: true
|
||||||
group: DEFAULT_GROUP
|
group: DEFAULT_GROUP
|
||||||
|
|||||||
@ -4,10 +4,10 @@ spring:
|
|||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 42.51.4.235:8848
|
server-addr: 222.186.131.30:8848
|
||||||
config:
|
config:
|
||||||
server-addr: 42.51.4.235:8848
|
server-addr: 222.186.131.30:8848
|
||||||
namespace: 50b370f0-6fc9-4e1d-9a19-df276cff9eac
|
namespace: fe5388cc-76bc-44d6-ba20-034f97c567e5
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
refresh-enabled: true
|
refresh-enabled: true
|
||||||
group: DEFAULT_GROUP
|
group: DEFAULT_GROUP
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user