From 6ef6875a605b77c8ea5399fda5f9fbd383107878 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Tue, 20 Aug 2019 18:33:02 +0200 Subject: [PATCH] Correct WebFlux response body method See gh-17919 --- .../web/reactive/error/AbstractErrorWebExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/error/AbstractErrorWebExceptionHandler.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/error/AbstractErrorWebExceptionHandler.java index 2d4732b0e5..bfc411ee15 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/error/AbstractErrorWebExceptionHandler.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/error/AbstractErrorWebExceptionHandler.java @@ -171,7 +171,7 @@ public abstract class AbstractErrorWebExceptionHandler implements ErrorWebExcept } Resource resource = resolveResource(viewName); if (resource != null) { - return responseBody.bodyValue(BodyInserters.fromResource(resource)); + return responseBody.body(BodyInserters.fromResource(resource)); } return Mono.empty(); }