👽 Updating code due to external API changes.

➕ Adding a dependency. websocket
This commit is contained in:
冷冷 committed 2019-01-24 09:12:29 +08:00
1 parent 2b2507a068
commit ee0aa4782b
2 files changed
+6 -1

No files matched your search

@@ -57,7 +57,7 @@ public class PigxFeginErrorDecoder extends ErrorDecoder.Default {
public Exception decode(String methodKey, Response response) {
PigxFeginException exception = errorStatus(methodKey, response);
Date retryAfter = retryAfterDecoder.apply(firstOrNull(response.headers()));
return new RetryableException(exception.getMessage(), exception, retryAfter);
return new RetryableException(exception.getMessage(), response.request().httpMethod(), exception, retryAfter);
}
private static PigxFeginException errorStatus(String methodKey, Response response) {
+5
View File
@@ -65,6 +65,11 @@
<artifactId>pigx-common-swagger</artifactId>
<version>2.2.0</version>
</dependency>
<!--websocket-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
<!-- activiti -->
<dependency>
<groupId>org.activiti</groupId>