From ba32722947dc02837c0c4e3791018aaf8eea098e Mon Sep 17 00:00:00 2001 From: zlt Date: Thu, 6 Feb 2020 10:11:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=A1=E8=AE=A1=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E5=AE=9E=E7=8E=B0=E7=B1=BBbean=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/central/log/service/impl/LoggerAuditServiceImpl.java | 2 -- .../src/main/resources/META-INF/spring.factories | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/service/impl/LoggerAuditServiceImpl.java b/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/service/impl/LoggerAuditServiceImpl.java index 01099d1..5feb5d5 100644 --- a/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/service/impl/LoggerAuditServiceImpl.java +++ b/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/service/impl/LoggerAuditServiceImpl.java @@ -4,7 +4,6 @@ import com.central.log.model.Audit; import com.central.log.service.IAuditService; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.stereotype.Service; import java.time.format.DateTimeFormatter; @@ -18,7 +17,6 @@ import java.time.format.DateTimeFormatter; * Github: https://github.com/zlt2000 */ @Slf4j -@Service @ConditionalOnProperty(name = "zlt.audit-log.log-type", havingValue = "logger", matchIfMissing = true) public class LoggerAuditServiceImpl implements IAuditService { private static final String MSG_PATTERN = "{}|{}|{}|{}|{}|{}|{}|{}"; diff --git a/zlt-commons/zlt-log-spring-boot-starter/src/main/resources/META-INF/spring.factories b/zlt-commons/zlt-log-spring-boot-starter/src/main/resources/META-INF/spring.factories index 936d0a0..e828014 100644 --- a/zlt-commons/zlt-log-spring-boot-starter/src/main/resources/META-INF/spring.factories +++ b/zlt-commons/zlt-log-spring-boot-starter/src/main/resources/META-INF/spring.factories @@ -3,4 +3,5 @@ com.central.log.config.TtlMDCAdapterInitializer org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ com.central.log.config.LogAutoConfigure,\ +com.central.log.service.impl.LoggerAuditServiceImpl,\ com.central.log.aspect.AuditLogAspect -- GitLab