Commit 7a37e868 authored by 董建华's avatar 董建华

1

parent 85685126
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>spring-boot-starter-sentry-ext</name> <name>spring-boot-starter-sentry-ext</name>
<description>sentry超时的时候可选钉钉备用</description> <description>sentry超时的时候可选钉钉备用</description>
<packaging>jar</packaging>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class></start-class> <start-class></start-class>
...@@ -24,6 +24,12 @@ ...@@ -24,6 +24,12 @@
<retrofit.version>2.4.0</retrofit.version> <retrofit.version>2.4.0</retrofit.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId> <artifactId>spring-boot-autoconfigure</artifactId>
...@@ -78,7 +84,6 @@ ...@@ -78,7 +84,6 @@
</dependency> </dependency>
</dependencies> </dependencies>
...@@ -86,10 +91,11 @@ ...@@ -86,10 +91,11 @@
<build> <build>
<plugins> <plugins>
<plugin> <!--<plugin>-->
<groupId>org.springframework.boot</groupId> <!--<groupId>org.springframework.boot</groupId>-->
<artifactId>spring-boot-maven-plugin</artifactId> <!--<artifactId>spring-boot-maven-plugin</artifactId>-->
</plugin>
<!--</plugin>-->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
......
...@@ -25,7 +25,7 @@ public class DefaultDingDingExceptionHandler implements SentryExceptionHandler { ...@@ -25,7 +25,7 @@ public class DefaultDingDingExceptionHandler implements SentryExceptionHandler {
private final String dingDingUrl; private final String dingDingUrl;
DefaultDingDingExceptionHandler(ThrErrProProperties proProperties) { public DefaultDingDingExceptionHandler(ThrErrProProperties proProperties) {
this.proProperties = proProperties; this.proProperties = proProperties;
this.client = new OkHttpClient(); this.client = new OkHttpClient();
this.dingDingUrl = dingDingHost.concat(proProperties.getDingDingToken()); this.dingDingUrl = dingDingHost.concat(proProperties.getDingDingToken());
......
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
cn.quantgroup.config.SentryDingdingConfiguration
\ No newline at end of file
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