代码调整
This commit is contained in:
@@ -12,7 +12,6 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
* @date 2022年03月22日 10:07
|
||||
*/
|
||||
@Slf4j
|
||||
@MapperScan("com.njcn.**.mapper")
|
||||
@EnableFeignClients(basePackages = "com.njcn")
|
||||
@SpringBootApplication(scanBasePackages = "com.njcn")
|
||||
public class JobExecutorApplication {
|
||||
|
||||
@@ -1,25 +1,29 @@
|
||||
package com.njcn.executor.handler;
|
||||
|
||||
import com.njcn.prepare.harmonic.api.line.NormalLimitFeignClient;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
* 告警异常
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class HarmAlarmDetailJob {
|
||||
|
||||
private final NormalLimitFeignClient normalLimitFeignClient;
|
||||
|
||||
@XxlJob("harmAlarmDetailJob")
|
||||
public void harmAlarmDetailJob(){
|
||||
normalLimitFeignClient.getNormLimitData();
|
||||
}
|
||||
|
||||
}
|
||||
//package com.njcn.executor.handler;
|
||||
//
|
||||
//import com.njcn.prepare.harmonic.api.line.NormalLimitFeignClient;
|
||||
//import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
//import lombok.RequiredArgsConstructor;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//import org.springframework.stereotype.Component;
|
||||
//
|
||||
//
|
||||
///**
|
||||
// * pqs
|
||||
// * 告警异常
|
||||
// *
|
||||
// * @author cdf
|
||||
// * @date 2022/4/7
|
||||
// */
|
||||
//@Slf4j
|
||||
//@Component
|
||||
//@RequiredArgsConstructor
|
||||
//public class HarmAlarmDetailJob {
|
||||
//
|
||||
// private final NormalLimitFeignClient normalLimitFeignClient;
|
||||
//
|
||||
// @XxlJob("harmAlarmDetailJob")
|
||||
// public void harmAlarmDetailJob() {
|
||||
// normalLimitFeignClient.getNormLimitData();
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
||||
@@ -46,7 +46,8 @@ logging:
|
||||
xxl:
|
||||
job:
|
||||
admin:
|
||||
addresses: http://198.120.100.195:10217/job-admin
|
||||
# addresses: http://198.120.100.195:10217/job-admin
|
||||
addresses: http://192.168.1.29:10217/job-admin
|
||||
#执行器通讯TOKEN [选填]:非空时启用;
|
||||
accessToken:
|
||||
executor:
|
||||
|
||||
Reference in New Issue
Block a user