Merge branch '2.7.x'
Closes gh-31807
This commit is contained in:
@@ -190,8 +190,6 @@ public class DispatcherHandlersMappingDescriptionProvider implements MappingDesc
|
||||
|
||||
@Override
|
||||
public void attributes(Map<String, Object> attributes) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Auto-generated method stub");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -163,7 +163,7 @@ class MappingsEndpointTests {
|
||||
contextMappings, "dispatcherHandlers");
|
||||
assertThat(dispatcherHandlers).containsOnlyKeys("webHandler");
|
||||
List<DispatcherHandlerMappingDescription> handlerMappings = dispatcherHandlers.get("webHandler");
|
||||
assertThat(handlerMappings).hasSize(3);
|
||||
assertThat(handlerMappings).hasSize(4);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -210,6 +210,11 @@ class MappingsEndpointTests {
|
||||
|
||||
}
|
||||
|
||||
@Bean
|
||||
RouterFunction<ServerResponse> routerFunctionWithAttributes() {
|
||||
return route(GET("/four"), (request) -> ServerResponse.ok().build()).withAttribute("test", "test");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
|
||||
Reference in New Issue
Block a user