diff --git a/docs/pom.xml b/docs/pom.xml
index b5c65aa6..f8eafd9a 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -6,7 +6,7 @@
org.springframework.cloud
spring-cloud-gateway
- 2.1.2.BUILD-SNAPSHOT
+ 2.1.2.RELEASE
spring-cloud-gateway-docs
pom
diff --git a/pom.xml b/pom.xml
index be6e4b30..314fc53a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
org.springframework.cloud
spring-cloud-gateway
- 2.1.2.BUILD-SNAPSHOT
+ 2.1.2.RELEASE
pom
Spring Cloud Gateway
@@ -15,7 +15,7 @@
org.springframework.cloud
spring-cloud-build
- 2.1.6.BUILD-SNAPSHOT
+ 2.1.6.RELEASE
@@ -52,8 +52,8 @@
UTF-8
UTF-8
1.8
- 2.1.2.BUILD-SNAPSHOT
- 2.1.2.BUILD-SNAPSHOT
+ 2.1.2.RELEASE
+ 2.1.2.RELEASE
0.6
true
diff --git a/spring-cloud-gateway-core/pom.xml b/spring-cloud-gateway-core/pom.xml
index 6538cbb0..b3e446ac 100644
--- a/spring-cloud-gateway-core/pom.xml
+++ b/spring-cloud-gateway-core/pom.xml
@@ -7,7 +7,7 @@
org.springframework.cloud
spring-cloud-gateway
- 2.1.2.BUILD-SNAPSHOT
+ 2.1.2.RELEASE
..
spring-cloud-gateway-core
diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/ServerWebExchangeUtils.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/ServerWebExchangeUtils.java
index 18fe8dc7..c0aeb6e0 100644
--- a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/ServerWebExchangeUtils.java
+++ b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/ServerWebExchangeUtils.java
@@ -148,8 +148,9 @@ public final class ServerWebExchangeUtils {
public static final String CACHED_SERVER_HTTP_REQUEST_DECORATOR_ATTR = "cachedServerHttpRequestDecorator";
/**
- * Cached request body key. Used when {@link #cacheRequestBodyAndRequest(ServerWebExchange, Function)}
- * or {@link #cacheRequestBody(ServerWebExchange, Function)} are called.
+ * Cached request body key. Used when
+ * {@link #cacheRequestBodyAndRequest(ServerWebExchange, Function)} or
+ * {@link #cacheRequestBody(ServerWebExchange, Function)} are called.
*/
public static final String CACHED_REQUEST_BODY_ATTR = "cachedRequestBody";
@@ -272,9 +273,10 @@ public final class ServerWebExchangeUtils {
/**
* Caches the request body and the created {@link ServerHttpRequestDecorator} in
- * ServerWebExchange attributes. Those attributes are {@link #CACHED_REQUEST_BODY_ATTR}
- * and {@link #CACHED_SERVER_HTTP_REQUEST_DECORATOR_ATTR} respectively. This method
- * is useful when the {@link ServerWebExchange} can not be modified, such as a
+ * ServerWebExchange attributes. Those attributes are
+ * {@link #CACHED_REQUEST_BODY_ATTR} and
+ * {@link #CACHED_SERVER_HTTP_REQUEST_DECORATOR_ATTR} respectively. This method is
+ * useful when the {@link ServerWebExchange} can not be modified, such as a
* {@link RoutePredicateFactory}.
* @param exchange the available ServerWebExchange.
* @param function a function that accepts the created ServerHttpRequestDecorator.
@@ -302,13 +304,13 @@ public final class ServerWebExchangeUtils {
/**
* Caches the request body in a ServerWebExchange attribute. The attribute is
- * {@link #CACHED_REQUEST_BODY_ATTR}. If this method is called from a location
- * that can not mutate the ServerWebExchange (such as a Predicate), setting
- * cacheDecoratedRequest to true will put a {@link ServerHttpRequestDecorator} in
- * an attribute {@link #CACHED_SERVER_HTTP_REQUEST_DECORATOR_ATTR} for adaptation
- * later.
+ * {@link #CACHED_REQUEST_BODY_ATTR}. If this method is called from a location that
+ * can not mutate the ServerWebExchange (such as a Predicate), setting
+ * cacheDecoratedRequest to true will put a {@link ServerHttpRequestDecorator} in an
+ * attribute {@link #CACHED_SERVER_HTTP_REQUEST_DECORATOR_ATTR} for adaptation later.
* @param exchange the available ServerWebExchange.
- * @param cacheDecoratedRequest if true, the ServerHttpRequestDecorator will be cached.
+ * @param cacheDecoratedRequest if true, the ServerHttpRequestDecorator will be
+ * cached.
* @param function a function that accepts the created ServerHttpRequestDecorator.
* @param generic type for the return {@link Mono}.
* @return Mono of type T created by the function parameter.
@@ -323,7 +325,8 @@ public final class ServerWebExchangeUtils {
if (log.isTraceEnabled()) {
log.trace("retaining body in exchange attribute");
}
- exchange.getAttributes().put(CACHED_REQUEST_BODY_ATTR, dataBuffer);
+ exchange.getAttributes().put(CACHED_REQUEST_BODY_ATTR,
+ dataBuffer);
}
ServerHttpRequestDecorator decorator = new ServerHttpRequestDecorator(
@@ -344,10 +347,11 @@ public final class ServerWebExchangeUtils {
}
};
if (cacheDecoratedRequest) {
- exchange.getAttributes().put(CACHED_SERVER_HTTP_REQUEST_DECORATOR_ATTR,
- decorator);
+ exchange.getAttributes().put(
+ CACHED_SERVER_HTTP_REQUEST_DECORATOR_ATTR, decorator);
}
return function.apply(decorator);
});
}
+
}
diff --git a/spring-cloud-gateway-dependencies/pom.xml b/spring-cloud-gateway-dependencies/pom.xml
index 8b596dc6..1ed98042 100644
--- a/spring-cloud-gateway-dependencies/pom.xml
+++ b/spring-cloud-gateway-dependencies/pom.xml
@@ -6,12 +6,12 @@
spring-cloud-dependencies-parent
org.springframework.cloud
- 2.1.6.BUILD-SNAPSHOT
+ 2.1.6.RELEASE
spring-cloud-gateway-dependencies
- 2.1.2.BUILD-SNAPSHOT
+ 2.1.2.RELEASE
pom
spring-cloud-gateway-dependencies
diff --git a/spring-cloud-gateway-mvc/pom.xml b/spring-cloud-gateway-mvc/pom.xml
index a0f2ffd9..e0327f2d 100644
--- a/spring-cloud-gateway-mvc/pom.xml
+++ b/spring-cloud-gateway-mvc/pom.xml
@@ -11,7 +11,7 @@
org.springframework.cloud
spring-cloud-gateway
- 2.1.2.BUILD-SNAPSHOT
+ 2.1.2.RELEASE
..
diff --git a/spring-cloud-gateway-sample/pom.xml b/spring-cloud-gateway-sample/pom.xml
index 62f96152..91bd5bc8 100644
--- a/spring-cloud-gateway-sample/pom.xml
+++ b/spring-cloud-gateway-sample/pom.xml
@@ -16,7 +16,7 @@
org.springframework.cloud
spring-cloud-gateway
- 2.1.2.BUILD-SNAPSHOT
+ 2.1.2.RELEASE
..
diff --git a/spring-cloud-gateway-webflux/pom.xml b/spring-cloud-gateway-webflux/pom.xml
index ceca2f4c..cfa78666 100644
--- a/spring-cloud-gateway-webflux/pom.xml
+++ b/spring-cloud-gateway-webflux/pom.xml
@@ -11,7 +11,7 @@
org.springframework.cloud
spring-cloud-gateway
- 2.1.2.BUILD-SNAPSHOT
+ 2.1.2.RELEASE
..
diff --git a/spring-cloud-starter-gateway/pom.xml b/spring-cloud-starter-gateway/pom.xml
index fd9e63a7..7426c9f9 100644
--- a/spring-cloud-starter-gateway/pom.xml
+++ b/spring-cloud-starter-gateway/pom.xml
@@ -6,7 +6,7 @@
org.springframework.cloud
spring-cloud-gateway
- 2.1.2.BUILD-SNAPSHOT
+ 2.1.2.RELEASE
..
spring-cloud-starter-gateway