From f8cbea7a285fc6308305d7eaa872eda2cde595e4 Mon Sep 17 00:00:00 2001 From: chentianming Date: Thu, 2 Sep 2021 20:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=85=B3=E9=97=AD=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E9=87=8D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- README_EN.md | 4 ++-- pom.xml | 2 +- .../retrofit/spring/boot/config/RetryProperty.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8ba7793..957ad61 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ gitee项目地址:[https://gitee.com/lianjiatech/retrofit-spring-boot-starter] com.github.lianjiatech retrofit-spring-boot-starter - 2.2.15 + 2.2.16 ``` @@ -63,7 +63,7 @@ gitee项目地址:[https://gitee.com/lianjiatech/retrofit-spring-boot-starter] com.github.lianjiatech retrofit-spring-boot-starter - 2.2.15 + 2.2.16 com.squareup.okhttp3 @@ -465,7 +465,7 @@ retrofit: #### 全局重试 -全局重试默认开启,可以通过配置`retrofit.retry.enable-global-retry=false`关闭。开启之后,所有`HTTP`请求都会按照配置参数自动重试,详细配置项如下: +全局重试默认关闭,可以通过配置`retrofit.retry.enable-global-retry=ture`开启。开启之后,所有`HTTP`请求都会按照配置参数自动重试,详细配置项如下: ```yaml retrofit: diff --git a/README_EN.md b/README_EN.md index 0f4396f..829e865 100644 --- a/README_EN.md +++ b/README_EN.md @@ -43,7 +43,7 @@ com.github.lianjiatech retrofit-spring-boot-starter - 2.2.15 + 2.2.16 ``` @@ -53,7 +53,7 @@ This project depends on Retrofit-2.9.0, okhttp-3.14.9, and okio-1.17.5 versions. com.github.lianjiatech retrofit-spring-boot-starter - 2.2.15 + 2.2.16 com.squareup.okhttp3 diff --git a/pom.xml b/pom.xml index f3a9640..6208c14 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.github.lianjiatech retrofit-spring-boot-starter - 2.2.15 + 2.2.16 retrofit-spring-boot-starter retrofit-spring-boot-starter diff --git a/src/main/java/com/github/lianjiatech/retrofit/spring/boot/config/RetryProperty.java b/src/main/java/com/github/lianjiatech/retrofit/spring/boot/config/RetryProperty.java index 2b7c34b..fe16889 100644 --- a/src/main/java/com/github/lianjiatech/retrofit/spring/boot/config/RetryProperty.java +++ b/src/main/java/com/github/lianjiatech/retrofit/spring/boot/config/RetryProperty.java @@ -14,7 +14,7 @@ public class RetryProperty { * 否则的话,只有被 {@link com.github.lianjiatech.retrofit.spring.boot.retry.Retry}标注的接口才会执行重试。 * 接口上Retry注解属性优先于全局配置。 */ - private boolean enableGlobalRetry = true; + private boolean enableGlobalRetry = false; /** * 全局最大重试次数,最大可设置为100