Merge pull request #14843 from izeye

* pr/14843:
  Polish
This commit is contained in:
Stephane Nicoll 2018-10-16 11:39:01 +02:00
commit 6fb29eddc4
7 changed files with 17 additions and 16 deletions

View File

@ -35,6 +35,7 @@ import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.autoconfigure.metrics.JvmMetricsAutoConfiguration; import org.springframework.boot.actuate.autoconfigure.metrics.JvmMetricsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.metrics.LogbackMetricsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration; import org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.metrics.SystemMetricsAutoConfiguration; import org.springframework.boot.actuate.autoconfigure.metrics.SystemMetricsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.metrics.amqp.RabbitMetricsAutoConfiguration; import org.springframework.boot.actuate.autoconfigure.metrics.amqp.RabbitMetricsAutoConfiguration;
@ -142,7 +143,7 @@ public class MetricsIntegrationTests {
@Configuration @Configuration
@ImportAutoConfiguration({ MetricsAutoConfiguration.class, @ImportAutoConfiguration({ MetricsAutoConfiguration.class,
JvmMetricsAutoConfiguration.class, LogbackMetrics.class, JvmMetricsAutoConfiguration.class, LogbackMetricsAutoConfiguration.class,
SystemMetricsAutoConfiguration.class, RabbitMetricsAutoConfiguration.class, SystemMetricsAutoConfiguration.class, RabbitMetricsAutoConfiguration.class,
CacheMetricsAutoConfiguration.class, CacheMetricsAutoConfiguration.class,
DataSourcePoolMetricsAutoConfiguration.class, DataSourcePoolMetricsAutoConfiguration.class,

View File

@ -47,7 +47,7 @@ public final class HttpTrace {
private volatile Long timeTaken; private volatile Long timeTaken;
/** /**
* Creates a fully-configured {@code HttpTrace} instance. Primarly for use by * Creates a fully-configured {@code HttpTrace} instance. Primarily for use by
* {@link HttpTraceRepository} implementations when recreating a trace from a * {@link HttpTraceRepository} implementations when recreating a trace from a
* persistent store. * persistent store.
* @param request the request * @param request the request
@ -137,7 +137,7 @@ public final class HttpTrace {
} }
/** /**
* Creates a fully-configured {@code Request} instance. Primarly for use by * Creates a fully-configured {@code Request} instance. Primarily for use by
* {@link HttpTraceRepository} implementations when recreating a request from a * {@link HttpTraceRepository} implementations when recreating a request from a
* persistent store. * persistent store.
* @param method the HTTP method of the request * @param method the HTTP method of the request
@ -186,7 +186,7 @@ public final class HttpTrace {
} }
/** /**
* Creates a fully-configured {@code Response} instance. Primarly for use by * Creates a fully-configured {@code Response} instance. Primarily for use by
* {@link HttpTraceRepository} implementations when recreating a response from a * {@link HttpTraceRepository} implementations when recreating a response from a
* persistent store. * persistent store.
* @param status the status of the response * @param status the status of the response

View File

@ -585,12 +585,12 @@ public class HibernateJpaAutoConfigurationTests
static class AsyncBootstrappingConfiguration { static class AsyncBootstrappingConfiguration {
@Bean @Bean
ThreadPoolTaskExecutor ThreadPoolTaskExecutor() { public ThreadPoolTaskExecutor ThreadPoolTaskExecutor() {
return new ThreadPoolTaskExecutor(); return new ThreadPoolTaskExecutor();
} }
@Bean @Bean
public EntityManagerFactoryBuilderCustomizer asyncBoostrappingCustomizer( public EntityManagerFactoryBuilderCustomizer asyncBootstrappingCustomizer(
ThreadPoolTaskExecutor executor) { ThreadPoolTaskExecutor executor) {
return (builder) -> { return (builder) -> {
builder.setBootstrapExecutor(executor); builder.setBootstrapExecutor(executor);

View File

@ -1537,7 +1537,7 @@ content into your application. Rather, pick only the properties that you need.
management.metrics.tags.*= # Common tags that are applied to every meter. management.metrics.tags.*= # Common tags that are applied to every meter.
management.metrics.web.client.max-uri-tags=100 # Maximum number of unique URI tag values allowed. After the max number of tag values is reached, metrics with additional tag values are denied by filter. management.metrics.web.client.max-uri-tags=100 # Maximum number of unique URI tag values allowed. After the max number of tag values is reached, metrics with additional tag values are denied by filter.
management.metrics.web.client.requests-metric-name=http.client.requests # Name of the metric for sent requests. management.metrics.web.client.requests-metric-name=http.client.requests # Name of the metric for sent requests.
management.metrics.web.server.auto-time-requests=true # Whether requests handled by Spring MVC or WebFlux should be automatically timed. management.metrics.web.server.auto-time-requests=true # Whether requests handled by Spring MVC, WebFlux or Jersey should be automatically timed.
management.metrics.web.server.max-uri-tags=100 # Maximum number of unique URI tag values allowed. After the max number of tag values is reached, metrics with additional tag values are denied by filter. management.metrics.web.server.max-uri-tags=100 # Maximum number of unique URI tag values allowed. After the max number of tag values is reached, metrics with additional tag values are denied by filter.
management.metrics.web.server.requests-metric-name=http.server.requests # Name of the metric for received requests. management.metrics.web.server.requests-metric-name=http.server.requests # Name of the metric for received requests.

View File

@ -632,16 +632,16 @@ have been added for those.
"name": "logging.level.keys", "name": "logging.level.keys",
"values": [ "values": [
{ {
"value": "root", "value": "root",
"description": "Root logger used to assign the default logging level." "description": "Root logger used to assign the default logging level."
}, },
{ {
"value": "sql", "value": "sql",
"description": "SQL logging groups including Hibernate SQL logger." "description": "SQL logging group including Hibernate SQL logger."
}, },
{ {
"value": "web", "value": "web",
"description": "Web logging groups including codecs." "description": "Web logging group including codecs."
} }
], ],
"providers": [ "providers": [

View File

@ -2025,7 +2025,7 @@ By default, Spring Boot registers a `BeanContainer` implementation that uses the
injection. injection.
You can disable or tune this behaviour by registering a `HibernatePropertiesCustomizer` You can disable or tune this behaviour by registering a `HibernatePropertiesCustomizer`
that remove or change the `hibernate.resource.beans.container` property. that removes or changes the `hibernate.resource.beans.container` property.

View File

@ -359,11 +359,11 @@
}, },
{ {
"value": "sql", "value": "sql",
"description": "SQL logging groups including Hibernate SQL logger." "description": "SQL logging group including Hibernate SQL logger."
}, },
{ {
"value": "web", "value": "web",
"description": "Web logging groups including codecs." "description": "Web logging group including codecs."
} }
], ],
"providers": [ "providers": [