Bladeren bron

修改包扫描路径

syh 5 jaren geleden
bovenliggende
commit
a7fa475cf7

+ 0 - 2
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/service/impl/ByteDanceHourlyAccountWarningServiceImpl.java

@@ -21,14 +21,12 @@ import java.util.List;
 @Service
 public class ByteDanceHourlyAccountWarningServiceImpl implements IByteDanceHourlyAccountWarningService {
 
-
     @Autowired
     private BytedanceAdvertiserHourlyReportMapper bytedanceAdvertiserHourlyReportMapper;
     @Autowired
     private UserAllocationMapper userAllocationMapper;
     @Autowired
     private MailLogMapper mailLogMapper;
-
     /**
      * 头条账户 出价预警
      *

+ 1 - 1
xxl-job-executor/src/main/java/com/xxl/job/executor/config/MybatisPlusConfig.java

@@ -11,7 +11,7 @@ import org.springframework.context.annotation.Configuration;
  * @Author zhoujf
  */
 @Configuration
-@MapperScan(value = {"org.jeecg.modules.**.mapper*", "cn.com.ctop.**.mapper*", "cn.com.ctop.bytedance.mapper*"})
+@MapperScan(value = {"org.jeecg.modules", "cn.com.ctop"})
 public class MybatisPlusConfig {
 
     /**

+ 2 - 5
xxl-job-executor/src/main/java/com/xxl/job/executor/config/XxlJobConfig.java

@@ -1,8 +1,7 @@
 package com.xxl.job.executor.config;
 
 import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.xxl.job.core.log.XxlJobLogger;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
@@ -14,8 +13,6 @@ import org.springframework.context.annotation.Configuration;
  */
 @Configuration
 public class XxlJobConfig {
-    private Logger logger = LoggerFactory.getLogger(XxlJobConfig.class);
-
     @Value("${xxl.job.admin.addresses}")
     private String adminAddresses;
 
@@ -40,7 +37,7 @@ public class XxlJobConfig {
 
     @Bean
     public XxlJobSpringExecutor xxlJobExecutor() {
-        logger.info(">>>>>>>>>>> xxl-job config init.");
+        XxlJobLogger.log(">>>>>>>>>>> xxl-job config init.");
         XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
         xxlJobSpringExecutor.setAdminAddresses(adminAddresses);
         xxlJobSpringExecutor.setAppName(appName);

+ 0 - 1
xxl-job-executor/src/main/resources/application.yml

@@ -3,7 +3,6 @@ server:
 spring:
   profiles:
     active: @activatedProperties@
-# log config
 logging:
   config: classpath:logback.xml
 ### 调度中心部署跟地址 [选填]:如调度中心集群部署存在多个地址则用逗号分隔。执行器将会使用该地址进行"执行器心跳注册"和"任务结果回调";为空则关闭自动注册;