提交 ba327229 编写于 作者: zlt2000's avatar zlt2000

优化审计日志实现类bean加载方式

上级 5f16dde7
......@@ -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 = "{}|{}|{}|{}|{}|{}|{}|{}";
......
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册