Browse Source

Bumping versions

pull/1543/head
buildmaster 5 years ago
parent
commit
d57c97f6d6
  1. 1
      docs/src/main/asciidoc/_configprops.adoc
  2. 10
      spring-cloud-gateway-sample/src/test/java/org/springframework/cloud/gateway/sample/GatewaySampleApplicationTests.java

1
docs/src/main/asciidoc/_configprops.adoc

@ -27,6 +27,7 @@
|spring.cloud.gateway.globalcors.add-to-simple-url-handler-mapping | false | If global CORS config should be added to the URL handler. |spring.cloud.gateway.globalcors.add-to-simple-url-handler-mapping | false | If global CORS config should be added to the URL handler.
|spring.cloud.gateway.globalcors.cors-configurations | | |spring.cloud.gateway.globalcors.cors-configurations | |
|spring.cloud.gateway.httpclient.connect-timeout | | The connect timeout in millis, the default is 45s. |spring.cloud.gateway.httpclient.connect-timeout | | The connect timeout in millis, the default is 45s.
|spring.cloud.gateway.httpclient.max-header-size | | The max response header size.
|spring.cloud.gateway.httpclient.pool.acquire-timeout | | Only for type FIXED, the maximum time in millis to wait for aquiring. |spring.cloud.gateway.httpclient.pool.acquire-timeout | | Only for type FIXED, the maximum time in millis to wait for aquiring.
|spring.cloud.gateway.httpclient.pool.max-connections | | Only for type FIXED, the maximum number of connections before starting pending acquisition on existing ones. |spring.cloud.gateway.httpclient.pool.max-connections | | Only for type FIXED, the maximum number of connections before starting pending acquisition on existing ones.
|spring.cloud.gateway.httpclient.pool.max-idle-time | | Time in millis after which the channel will be closed. If NULL, there is no max idle time. |spring.cloud.gateway.httpclient.pool.max-idle-time | | Time in millis after which the channel will be closed. If NULL, there is no max idle time.

10
spring-cloud-gateway-sample/src/test/java/org/springframework/cloud/gateway/sample/GatewaySampleApplicationTests.java

@ -49,8 +49,8 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
* @author Spencer Gibb * @author Spencer Gibb
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { @SpringBootTest(classes = { GatewaySampleApplicationTests.TestConfig.class },
GatewaySampleApplicationTests.TestConfig.class }, webEnvironment = RANDOM_PORT, properties = "management.server.port=${test.port}") webEnvironment = RANDOM_PORT, properties = "management.server.port=${test.port}")
public class GatewaySampleApplicationTests { public class GatewaySampleApplicationTests {
protected static int managementPort; protected static int managementPort;
@ -195,8 +195,10 @@ public class GatewaySampleApplicationTests {
int port; int port;
@Bean @Bean
public ServiceInstanceListSupplier fixedServiceInstanceListSupplier(Environment env) { public ServiceInstanceListSupplier fixedServiceInstanceListSupplier(
return ServiceInstanceListSupplier.fixed(env).instance("localhost", port, "httpbin").build(); Environment env) {
return ServiceInstanceListSupplier.fixed(env)
.instance("localhost", port, "httpbin").build();
} }
} }

Loading…
Cancel
Save