mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 20:19:06 +00:00
Merge branch '4.0.x'
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+4
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+4
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user