From 3e47bd9aa22446688c0b8ef7b622deb473a88e10 Mon Sep 17 00:00:00 2001 From: felixncheng Date: Wed, 30 Jul 2025 11:38:22 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20=E4=BF=AE=E5=A4=8D=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=20#236?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tencent/devops/logging/LoggingAutoConfiguration.kt | 5 +---- .../src/main/resources/META-INF/spring.factories | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 devops-boot-project/devops-boot-core/devops-logging/src/main/resources/META-INF/spring.factories diff --git a/devops-boot-project/devops-boot-core/devops-logging/src/main/kotlin/com/tencent/devops/logging/LoggingAutoConfiguration.kt b/devops-boot-project/devops-boot-core/devops-logging/src/main/kotlin/com/tencent/devops/logging/LoggingAutoConfiguration.kt index 2b20b00..5abd0af 100644 --- a/devops-boot-project/devops-boot-core/devops-logging/src/main/kotlin/com/tencent/devops/logging/LoggingAutoConfiguration.kt +++ b/devops-boot-project/devops-boot-core/devops-logging/src/main/kotlin/com/tencent/devops/logging/LoggingAutoConfiguration.kt @@ -10,7 +10,4 @@ import org.springframework.context.annotation.Configuration @Configuration(proxyBeanMethods = false) @ConditionalOnWebApplication @EnableConfigurationProperties(DevopsLoggingProperties::class) -class LoggingAutoConfiguration { - @Bean - fun devopsLoggingApplicationListener() = DevopsLoggingApplicationListener() -} +class LoggingAutoConfiguration \ No newline at end of file diff --git a/devops-boot-project/devops-boot-core/devops-logging/src/main/resources/META-INF/spring.factories b/devops-boot-project/devops-boot-core/devops-logging/src/main/resources/META-INF/spring.factories new file mode 100644 index 0000000..c5c3518 --- /dev/null +++ b/devops-boot-project/devops-boot-core/devops-logging/src/main/resources/META-INF/spring.factories @@ -0,0 +1,2 @@ +org.springframework.context.ApplicationListener=\ +com.tencent.devops.logging.system.DevopsLoggingApplicationListener