Commit 25c47290 authored by 董建华's avatar 董建华

难受

parent b6c640ae
...@@ -27,8 +27,7 @@ import org.springframework.context.annotation.Configuration; ...@@ -27,8 +27,7 @@ import org.springframework.context.annotation.Configuration;
*/ */
@Slf4j @Slf4j
@ConditionalOnProperty( @ConditionalOnProperty(
name = {"sentry.dsn"}, name = {"sentry.dsn"}
prefix = "threrr"
) )
@Configuration @Configuration
@EnableConfigurationProperties({SentryProperties.class,ThrErrProProperties.class}) @EnableConfigurationProperties({SentryProperties.class,ThrErrProProperties.class})
...@@ -46,6 +45,9 @@ public class SentryDingdingConfiguration { ...@@ -46,6 +45,9 @@ public class SentryDingdingConfiguration {
private SentryClient sentryClient; private SentryClient sentryClient;
@ConditionalOnProperty(
prefix = "threrr"
)
@Bean("thrErrSentryClient") @Bean("thrErrSentryClient")
public SentryClient thrErrSentryClient() { public SentryClient thrErrSentryClient() {
log.info("init sentry client... dsn:{}", this.properties.getDsn()); log.info("init sentry client... dsn:{}", this.properties.getDsn());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment