Merge branch '2.7.x'

Closes gh-31807
This commit is contained in:
Andy Wilkinson 2022-07-20 10:52:30 +01:00
commit 1acc7857e6
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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)