log:rm log
This commit is contained in:
parent
f4eaf572fa
commit
80c358d808
@ -20,7 +20,7 @@ public class EnsignQuartzAutoConfiguration {
|
|||||||
@Bean
|
@Bean
|
||||||
public SchedulerManager schedulerManager(Optional<Scheduler> scheduler) {
|
public SchedulerManager schedulerManager(Optional<Scheduler> scheduler) {
|
||||||
if (!scheduler.isPresent()) {
|
if (!scheduler.isPresent()) {
|
||||||
log.info("[定时任务 - 已禁用][参考 https://doc.iocoder.cn/job/ 开启]");
|
log.info("[定时任务 - 已禁用]");
|
||||||
return new SchedulerManager(null);
|
return new SchedulerManager(null);
|
||||||
}
|
}
|
||||||
return new SchedulerManager(scheduler.get());
|
return new SchedulerManager(scheduler.get());
|
||||||
|
@ -143,7 +143,7 @@ public class SchedulerManager {
|
|||||||
private void validateScheduler() {
|
private void validateScheduler() {
|
||||||
if (scheduler == null) {
|
if (scheduler == null) {
|
||||||
throw exception0(NOT_IMPLEMENTED.getCode(),
|
throw exception0(NOT_IMPLEMENTED.getCode(),
|
||||||
"[定时任务 - 已禁用][参考 https://doc.iocoder.cn/job/ 开启]");
|
"[定时任务 - 已禁用]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,53 +20,8 @@ public class BannerApplicationRunner implements ApplicationRunner {
|
|||||||
public void run(ApplicationArguments args) {
|
public void run(ApplicationArguments args) {
|
||||||
ThreadUtil.execute(() -> {
|
ThreadUtil.execute(() -> {
|
||||||
ThreadUtil.sleep(1, TimeUnit.SECONDS); // 延迟 1 秒,保证输出到结尾
|
ThreadUtil.sleep(1, TimeUnit.SECONDS); // 延迟 1 秒,保证输出到结尾
|
||||||
log.info("\n----------------------------------------------------------\n\t" +
|
log.info("\n----------------------------------------------------------\n" +
|
||||||
"项目启动成功!\n\t" +
|
"项目启动成功!\n");
|
||||||
"接口文档: \t{} \n\t" +
|
|
||||||
"开发文档: \t{} \n\t" +
|
|
||||||
"视频教程: \t{} \n" +
|
|
||||||
"----------------------------------------------------------",
|
|
||||||
"https://doc.iocoder.cn/api-doc/",
|
|
||||||
"https://doc.iocoder.cn",
|
|
||||||
"https://t.zsxq.com/02Yf6M7Qn");
|
|
||||||
|
|
||||||
// 数据报表
|
|
||||||
if (isNotPresent("com.ensign.crm.module.report.framework.security.config.SecurityConfiguration")) {
|
|
||||||
System.out.println("[报表模块 ensign-module-report - 已禁用][参考 https://doc.iocoder.cn/report/ 开启]");
|
|
||||||
}
|
|
||||||
// 工作流
|
|
||||||
if (isNotPresent("com.ensign.crm.module.bpm.framework.flowable.config.BpmFlowableConfiguration")) {
|
|
||||||
System.out.println("[工作流模块 ensign-module-bpm - 已禁用][参考 https://doc.iocoder.cn/bpm/ 开启]");
|
|
||||||
}
|
|
||||||
// 商城系统
|
|
||||||
if (isNotPresent("com.ensign.crm.module.trade.framework.web.config.TradeWebConfiguration")) {
|
|
||||||
System.out.println("[商城系统 ensign-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");
|
|
||||||
}
|
|
||||||
// ERP 系统
|
|
||||||
if (isNotPresent("com.ensign.crm.module.erp.framework.web.config.ErpWebConfiguration")) {
|
|
||||||
System.out.println("[ERP 系统 ensign-module-erp - 已禁用][参考 https://doc.iocoder.cn/erp/build/ 开启]");
|
|
||||||
}
|
|
||||||
// CRM 系统
|
|
||||||
if (isNotPresent("com.ensign.crm.module.crm.framework.web.config.CrmWebConfiguration")) {
|
|
||||||
System.out.println("[CRM 系统 ensign-module-crm - 已禁用][参考 https://doc.iocoder.cn/crm/build/ 开启]");
|
|
||||||
}
|
|
||||||
// 微信公众号
|
|
||||||
if (isNotPresent("com.ensign.crm.module.mp.framework.mp.config.MpConfiguration")) {
|
|
||||||
System.out.println("[微信公众号 ensign-module-mp - 已禁用][参考 https://doc.iocoder.cn/mp/build/ 开启]");
|
|
||||||
}
|
|
||||||
// 支付平台
|
|
||||||
if (isNotPresent("com.ensign.crm.module.pay.framework.pay.config.PayConfiguration")) {
|
|
||||||
System.out.println("[支付系统 ensign-module-pay - 已禁用][参考 https://doc.iocoder.cn/pay/build/ 开启]");
|
|
||||||
}
|
|
||||||
// AI 大模型
|
|
||||||
if (isNotPresent("com.ensign.crm.module.ai.framework.web.config.AiWebConfiguration")) {
|
|
||||||
System.out.println("[AI 大模型 ensign-module-ai - 已禁用][参考 https://doc.iocoder.cn/ai/build/ 开启]");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isNotPresent(String className) {
|
|
||||||
return !ClassUtils.isPresent(className, ClassUtils.getDefaultClassLoader());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
芋道源码 http://www.iocoder.cn
|
|
||||||
Application Version: ${ensign.info.version}
|
Application Version: ${ensign.info.version}
|
||||||
Spring Boot Version: ${spring-boot.version}
|
Spring Boot Version: ${spring-boot.version}
|
||||||
|
|
||||||
|
@ -191,8 +191,8 @@ public class ProxyService {
|
|||||||
int statusCode = kResponse.getStatusLine().getStatusCode();
|
int statusCode = kResponse.getStatusLine().getStatusCode();
|
||||||
log.info("response status: {}", statusCode);
|
log.info("response status: {}", statusCode);
|
||||||
String jsonStr = EntityUtils.toString(entity, "UTF-8").trim();
|
String jsonStr = EntityUtils.toString(entity, "UTF-8").trim();
|
||||||
String responseBody = EntityUtils.toString(entity);
|
// String responseBody = EntityUtils.toString(entity);
|
||||||
log.info("receive response: {}", responseBody);
|
// log.info("receive response: {}", responseBody);
|
||||||
log.info("receive json response: {}", jsonStr);
|
log.info("receive json response: {}", jsonStr);
|
||||||
JSONObject jsonObject = JSON.parseObject(jsonStr);
|
JSONObject jsonObject = JSON.parseObject(jsonStr);
|
||||||
if (jsonObject.containsKey("url")) {
|
if (jsonObject.containsKey("url")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user