Commit 1f04e23f by Johannes Edmeier

update to latest snapshot of boot

parent 81168636
...@@ -19,7 +19,7 @@ package de.codecentric.boot.admin.client.config; ...@@ -19,7 +19,7 @@ package de.codecentric.boot.admin.client.config;
import java.time.Duration; import java.time.Duration;
import java.time.temporal.ChronoUnit; import java.time.temporal.ChronoUnit;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.convert.DefaultDurationUnit; import org.springframework.boot.convert.DurationUnit;
@lombok.Data @lombok.Data
@ConfigurationProperties(prefix = "spring.boot.admin.client") @ConfigurationProperties(prefix = "spring.boot.admin.client")
...@@ -38,19 +38,19 @@ public class ClientProperties { ...@@ -38,19 +38,19 @@ public class ClientProperties {
/** /**
* Time interval the registration is repeated * Time interval the registration is repeated
*/ */
@DefaultDurationUnit(ChronoUnit.MILLIS) @DurationUnit(ChronoUnit.MILLIS)
private Duration period = Duration.ofMillis(10_000L); private Duration period = Duration.ofMillis(10_000L);
/** /**
* Connect timeout for the registration. * Connect timeout for the registration.
*/ */
@DefaultDurationUnit(ChronoUnit.MILLIS) @DurationUnit(ChronoUnit.MILLIS)
private Duration connectTimeout = Duration.ofMillis(5_000L); private Duration connectTimeout = Duration.ofMillis(5_000L);
/** /**
* Read timeout (in ms) for the registration. * Read timeout (in ms) for the registration.
*/ */
@DefaultDurationUnit(ChronoUnit.MILLIS) @DurationUnit(ChronoUnit.MILLIS)
private Duration readTimeout = Duration.ofMillis(5_000L); private Duration readTimeout = Duration.ofMillis(5_000L);
/** /**
......
...@@ -33,6 +33,7 @@ As some of the actuator endpoints changed with the Spring Boot 2 release not all ...@@ -33,6 +33,7 @@ As some of the actuator endpoints changed with the Spring Boot 2 release not all
* Added the concept of applications (consisting of 1 to n instances) to the backend * Added the concept of applications (consisting of 1 to n instances) to the backend
* Removed Zuul * Removed Zuul
* Removed dependency on spring-cloud-starter * Removed dependency on spring-cloud-starter
* Added CompositeHttpHeadersProvider to support multiple HttpHeadersProviders
=== Client === Client
* Moved all properties to `spring.boot.admin.client.*` and `spring.boot.admin.client.instance.*` * Moved all properties to `spring.boot.admin.client.*` and `spring.boot.admin.client.instance.*`
......
...@@ -20,7 +20,7 @@ import java.time.Duration; ...@@ -20,7 +20,7 @@ import java.time.Duration;
import java.time.temporal.ChronoUnit; import java.time.temporal.ChronoUnit;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.convert.DefaultDurationUnit; import org.springframework.boot.convert.DurationUnit;
import org.springframework.http.CacheControl; import org.springframework.http.CacheControl;
@lombok.Data @lombok.Data
...@@ -48,7 +48,7 @@ public class AdminServerUiProperties { ...@@ -48,7 +48,7 @@ public class AdminServerUiProperties {
/** /**
* include "max-age" directive in Cache-Control http header. * include "max-age" directive in Cache-Control http header.
*/ */
@DefaultDurationUnit(ChronoUnit.SECONDS) @DurationUnit(ChronoUnit.SECONDS)
private Duration maxAge = Duration.ofSeconds(3600); private Duration maxAge = Duration.ofSeconds(3600);
/** /**
......
...@@ -23,7 +23,7 @@ import java.time.temporal.ChronoUnit; ...@@ -23,7 +23,7 @@ import java.time.temporal.ChronoUnit;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.convert.DefaultDurationUnit; import org.springframework.boot.convert.DurationUnit;
import static java.util.Arrays.asList; import static java.util.Arrays.asList;
...@@ -91,26 +91,26 @@ public class AdminServerProperties { ...@@ -91,26 +91,26 @@ public class AdminServerProperties {
/** /**
* Time interval to update the status of instances with expired statusInfo * Time interval to update the status of instances with expired statusInfo
*/ */
@DefaultDurationUnit(ChronoUnit.MILLIS) @DurationUnit(ChronoUnit.MILLIS)
private Duration period = Duration.ofMillis(10_000L); private Duration period = Duration.ofMillis(10_000L);
/** /**
* Lifetime of status. The status won't be updated as long the last status isn't * Lifetime of status. The status won't be updated as long the last status isn't
* expired. * expired.
*/ */
@DefaultDurationUnit(ChronoUnit.MILLIS) @DurationUnit(ChronoUnit.MILLIS)
private Duration statusLifetime = Duration.ofMillis(10_000L); private Duration statusLifetime = Duration.ofMillis(10_000L);
/** /**
* Connect timeout when querying the instances' status and info. * Connect timeout when querying the instances' status and info.
*/ */
@DefaultDurationUnit(ChronoUnit.MILLIS) @DurationUnit(ChronoUnit.MILLIS)
private Duration connectTimeout = Duration.ofMillis(2_000); private Duration connectTimeout = Duration.ofMillis(2_000);
/** /**
* read timeout when querying the instances' status and info. * read timeout when querying the instances' status and info.
*/ */
@DefaultDurationUnit(ChronoUnit.MILLIS) @DurationUnit(ChronoUnit.MILLIS)
private Duration readTimeout = Duration.ofMillis(20_000); private Duration readTimeout = Duration.ofMillis(20_000);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment