Browse Source

:alien: Updating code due to external API changes.
:heavy_plus_sign: Adding a dependency. websocket

冷冷 6 years ago
parent
commit
ee0aa4782b

+ 1 - 1
pigx-common/pigx-common-security/src/main/java/com/pig4cloud/pigx/common/security/feign/PigxFeginErrorDecoder.java

@@ -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 - 0
pigx-visual/pigx-activiti/pom.xml

@@ -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>