Merge branch '4.0.x'

This commit is contained in:
Brian Clozel
2026-03-19 09:40:36 +01:00
4 changed files with 12 additions and 2 deletions
@@ -555,6 +555,7 @@ public abstract class AbstractWebFluxEndpointHandlerMapping extends RequestMappi
this.responseStatus = responseStatus;
}
@Reflective
Mono<Void> handle(ServerWebExchange exchange) {
ServerHttpResponse response = exchange.getResponse();
response.setStatusCode(this.responseStatus);
@@ -623,7 +624,7 @@ public abstract class AbstractWebFluxEndpointHandlerMapping extends RequestMappi
@Override
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
this.reflectiveRegistrar.registerRuntimeHints(hints, WriteOperationHandler.class,
ReadOperationHandler.class);
ReadOperationHandler.class, CatchAllHandler.class);
}
}
@@ -45,6 +45,10 @@ class AbstractWebFluxEndpointHandlerMappingTests {
.onType(TypeReference
.of("org.springframework.boot.webflux.actuate.endpoint.web.AbstractWebFluxEndpointHandlerMapping.ReadOperationHandler")))
.accepts(runtimeHints);
assertThat(RuntimeHintsPredicates.reflection()
.onType(TypeReference
.of("org.springframework.boot.webflux.actuate.endpoint.web.AbstractWebFluxEndpointHandlerMapping.CatchAllHandler")))
.accepts(runtimeHints);
}
}
@@ -494,6 +494,7 @@ public abstract class AbstractWebMvcEndpointHandlerMapping extends RequestMappin
this.responseStatus = responseStatus;
}
@Reflective
void handle(HttpServletResponse response) {
response.setStatus(this.responseStatus.value());
}
@@ -559,7 +560,7 @@ public abstract class AbstractWebMvcEndpointHandlerMapping extends RequestMappin
@Override
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
this.reflectiveRegistrar.registerRuntimeHints(hints, OperationHandler.class);
this.reflectiveRegistrar.registerRuntimeHints(hints, OperationHandler.class, CatchAllHandler.class);
}
}
@@ -40,6 +40,10 @@ class AbstractWebMvcEndpointHandlerMappingTests {
.onType(TypeReference
.of("org.springframework.boot.webmvc.actuate.endpoint.web.AbstractWebMvcEndpointHandlerMapping.OperationHandler")))
.accepts(runtimeHints);
assertThat(RuntimeHintsPredicates.reflection()
.onType(TypeReference
.of("org.springframework.boot.webmvc.actuate.endpoint.web.AbstractWebMvcEndpointHandlerMapping.CatchAllHandler")))
.accepts(runtimeHints);
}
}