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