Skip to content

Commit ba1ef52

Browse files
committed
Merge branch '2.0.x'
2 parents ac322a8 + 893d566 commit ba1ef52

File tree

7 files changed

+16
-15
lines changed

7 files changed

+16
-15
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/web/servlet/WebMvcMetricsAutoConfiguration.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ public MetricsWebMvcConfigurer metricsWebMvcConfigurer(MeterRegistry meterRegist
105105
return new MetricsWebMvcConfigurer(meterRegistry, tagsProvider);
106106
}
107107

108+
/**
109+
* {@link WebMvcConfigurer} to add metrics interceptors.
110+
*/
108111
static class MetricsWebMvcConfigurer implements WebMvcConfigurer {
109112

110113
private final MeterRegistry meterRegistry;

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,6 @@ public void path() {
106106
customize();
107107
}
108108

109-
private String resolveApplicationPath() {
110-
if (StringUtils.hasLength(this.jersey.getApplicationPath())) {
111-
return this.jersey.getApplicationPath();
112-
}
113-
else {
114-
return findApplicationPath(AnnotationUtils.findAnnotation(
115-
this.config.getApplication().getClass(), ApplicationPath.class));
116-
}
117-
}
118-
119109
private void customize() {
120110
this.customizers.orderedStream()
121111
.forEach((customizer) -> customizer.customize(this.config));
@@ -127,6 +117,14 @@ public JerseyApplicationPath jerseyApplicationPath() {
127117
return this::resolveApplicationPath;
128118
}
129119

120+
private String resolveApplicationPath() {
121+
if (StringUtils.hasLength(this.jersey.getApplicationPath())) {
122+
return this.jersey.getApplicationPath();
123+
}
124+
return findApplicationPath(AnnotationUtils.findAnnotation(
125+
this.config.getApplication().getClass(), ApplicationPath.class));
126+
}
127+
130128
@Bean
131129
@ConditionalOnMissingBean(name = "jerseyFilterRegistration")
132130
@ConditionalOnProperty(prefix = "spring.jersey", name = "type", havingValue = "filter")

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/JsonController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebFluxTestAutoConfigurationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-tests/spring-boot-integration-tests/spring-boot-devtools-tests/src/test/java/org/springframework/boot/devtools/tests/LaunchedApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-tests/spring-boot-integration-tests/spring-boot-devtools-tests/src/test/java/org/springframework/boot/devtools/tests/LocalApplicationLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-tests/spring-boot-integration-tests/spring-boot-devtools-tests/src/test/java/org/springframework/boot/devtools/tests/RemoteApplicationLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)