|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2012-2021 the original author or authors. |
|
|
|
* Copyright 2012-2022 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -164,7 +164,7 @@ class MappingsEndpointTests { |
|
|
|
contextMappings, "dispatcherHandlers"); |
|
|
|
contextMappings, "dispatcherHandlers"); |
|
|
|
assertThat(dispatcherHandlers).containsOnlyKeys("webHandler"); |
|
|
|
assertThat(dispatcherHandlers).containsOnlyKeys("webHandler"); |
|
|
|
List<DispatcherHandlerMappingDescription> handlerMappings = dispatcherHandlers.get("webHandler"); |
|
|
|
List<DispatcherHandlerMappingDescription> handlerMappings = dispatcherHandlers.get("webHandler"); |
|
|
|
assertThat(handlerMappings).hasSize(3); |
|
|
|
assertThat(handlerMappings).hasSize(4); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -211,6 +211,11 @@ class MappingsEndpointTests { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
|
|
|
RouterFunction<ServerResponse> routerFunctionWithAttributes() { |
|
|
|
|
|
|
|
return route(GET("/four"), (request) -> ServerResponse.ok().build()).withAttribute("test", "test"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false) |
|
|
|
@Configuration(proxyBeanMethods = false) |
|
|
|
|