Skip to content

Commit 84efc89

Browse files
committed
Merge branch '2.6.x' into 2.7.x
Closes gh-31806
2 parents 10e19d5 + bcbe072 commit 84efc89

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/mappings/reactive/DispatcherHandlersMappingDescriptionProvider.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2022 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.
@@ -184,8 +184,6 @@ public void resources(Function<ServerRequest, Mono<Resource>> lookupFunction) {
184184

185185
@Override
186186
public void attributes(Map<String, Object> attributes) {
187-
// TODO Auto-generated method stub
188-
throw new UnsupportedOperationException("Auto-generated method stub");
189187
}
190188

191189
@Override

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/web/mappings/MappingsEndpointTests.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 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.
@@ -164,7 +164,7 @@ void reactiveWebMappings() {
164164
contextMappings, "dispatcherHandlers");
165165
assertThat(dispatcherHandlers).containsOnlyKeys("webHandler");
166166
List<DispatcherHandlerMappingDescription> handlerMappings = dispatcherHandlers.get("webHandler");
167-
assertThat(handlerMappings).hasSize(3);
167+
assertThat(handlerMappings).hasSize(4);
168168
});
169169
}
170170

@@ -211,6 +211,11 @@ void three() {
211211

212212
}
213213

214+
@Bean
215+
RouterFunction<ServerResponse> routerFunctionWithAttributes() {
216+
return route(GET("/four"), (request) -> ServerResponse.ok().build()).withAttribute("test", "test");
217+
}
218+
214219
}
215220

216221
@Configuration(proxyBeanMethods = false)

0 commit comments

Comments
 (0)