modify
This commit is contained in:
parent
0ab0702da1
commit
3ae12ece91
@ -23,6 +23,9 @@ public class XxlJobConfig {
|
||||
@Value("${xxl.job.executor.appName}")
|
||||
private String appName;
|
||||
|
||||
@Value("${xxl.job.executor.accessKey}")
|
||||
private String accessKey;
|
||||
|
||||
|
||||
@Bean
|
||||
public XxlJobSpringExecutor xxlJobExecutor() {
|
||||
@ -30,6 +33,7 @@ public class XxlJobConfig {
|
||||
XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
|
||||
xxlJobSpringExecutor.setAdminAddresses(adminAddresses);
|
||||
xxlJobSpringExecutor.setAppname(appName);
|
||||
xxlJobSpringExecutor.setAccessToken(accessKey);
|
||||
log.info(">>>>>>>>>>> xxl-job config init success <<<<<<<<<<");
|
||||
return xxlJobSpringExecutor;
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@ spring:
|
||||
server-addr: 117.72.78.133:8848
|
||||
config:
|
||||
server-addr: 117.72.78.133:8848
|
||||
namespace: 622d03f1-aeac-430c-8361-e69a73a5c4db
|
||||
namespace: f17a91f4-6011-4e23-b537-d454711131c4
|
||||
file-extension: yml
|
||||
refresh-enabled: true
|
||||
group: DEFAULT_GROUP
|
||||
|
||||
@ -7,7 +7,7 @@ spring:
|
||||
server-addr: 127.0.0.1:8848
|
||||
config:
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 636cb425-50d7-4489-a462-fd4a5be6b87d
|
||||
namespace: 40b10af8-f553-41ae-8ff1-8cedf2272da0
|
||||
file-extension: yml
|
||||
refresh-enabled: true
|
||||
group: DEFAULT_GROUP
|
||||
|
||||
Loading…
Reference in New Issue
Block a user