From 0b06a4abf9ec686546faeba63eb94d3d340c7551 Mon Sep 17 00:00:00 2001 From: smallchill Date: Thu, 21 Feb 2019 13:42:18 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BF=AE=E5=A4=8Dlog=20event=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E4=B8=A4=E6=AC=A1=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springblade/core/log/event/ApiLogListener.java | 10 ++++------ .../springblade/core/log/event/ErrorLogListener.java | 8 +++----- .../springblade/core/log/event/UsualLogListener.java | 2 -- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/blade-core-log/src/main/java/org/springblade/core/log/event/ApiLogListener.java b/blade-core-log/src/main/java/org/springblade/core/log/event/ApiLogListener.java index ae7da27..b7751cf 100644 --- a/blade-core-log/src/main/java/org/springblade/core/log/event/ApiLogListener.java +++ b/blade-core-log/src/main/java/org/springblade/core/log/event/ApiLogListener.java @@ -18,18 +18,17 @@ package org.springblade.core.log.event; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springblade.core.log.constant.EventConstant; import org.springblade.core.launch.props.BladeProperties; -import org.springblade.core.secure.utils.SecureUtil; import org.springblade.core.launch.server.ServerInfo; -import org.springblade.core.tool.utils.UrlUtil; -import org.springblade.core.tool.utils.WebUtil; +import org.springblade.core.log.constant.EventConstant; import org.springblade.core.log.feign.ILogClient; import org.springblade.core.log.model.LogApi; +import org.springblade.core.secure.utils.SecureUtil; +import org.springblade.core.tool.utils.UrlUtil; +import org.springblade.core.tool.utils.WebUtil; import org.springframework.context.event.EventListener; import org.springframework.core.annotation.Order; import org.springframework.scheduling.annotation.Async; -import org.springframework.stereotype.Component; import javax.servlet.http.HttpServletRequest; import java.time.LocalDateTime; @@ -42,7 +41,6 @@ import java.util.Map; * @author Chill */ @Slf4j -@Component @AllArgsConstructor public class ApiLogListener { diff --git a/blade-core-log/src/main/java/org/springblade/core/log/event/ErrorLogListener.java b/blade-core-log/src/main/java/org/springblade/core/log/event/ErrorLogListener.java index 0226cc7..92324b6 100644 --- a/blade-core-log/src/main/java/org/springblade/core/log/event/ErrorLogListener.java +++ b/blade-core-log/src/main/java/org/springblade/core/log/event/ErrorLogListener.java @@ -18,17 +18,16 @@ package org.springblade.core.log.event; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springblade.core.log.constant.EventConstant; import org.springblade.core.launch.props.BladeProperties; -import org.springblade.core.secure.utils.SecureUtil; import org.springblade.core.launch.server.ServerInfo; -import org.springblade.core.tool.utils.WebUtil; +import org.springblade.core.log.constant.EventConstant; import org.springblade.core.log.feign.ILogClient; import org.springblade.core.log.model.LogError; +import org.springblade.core.secure.utils.SecureUtil; +import org.springblade.core.tool.utils.WebUtil; import org.springframework.context.event.EventListener; import org.springframework.core.annotation.Order; import org.springframework.scheduling.annotation.Async; -import org.springframework.stereotype.Component; import javax.servlet.http.HttpServletRequest; import java.time.LocalDateTime; @@ -40,7 +39,6 @@ import java.util.Map; * @author Chill */ @Slf4j -@Component @AllArgsConstructor public class ErrorLogListener { diff --git a/blade-core-log/src/main/java/org/springblade/core/log/event/UsualLogListener.java b/blade-core-log/src/main/java/org/springblade/core/log/event/UsualLogListener.java index 6213f6e..75324d8 100644 --- a/blade-core-log/src/main/java/org/springblade/core/log/event/UsualLogListener.java +++ b/blade-core-log/src/main/java/org/springblade/core/log/event/UsualLogListener.java @@ -29,7 +29,6 @@ import org.springblade.core.tool.utils.WebUtil; import org.springframework.context.event.EventListener; import org.springframework.core.annotation.Order; import org.springframework.scheduling.annotation.Async; -import org.springframework.stereotype.Component; import javax.servlet.http.HttpServletRequest; import java.time.LocalDateTime; @@ -41,7 +40,6 @@ import java.util.Map; * @author Chill */ @Slf4j -@Component @AllArgsConstructor public class UsualLogListener {