Skip to content

Commit e49869e

Browse files
committed
SPR-6148 - @responsebody with returned String results in unresolvable view ServletException
1 parent 5b12503 commit e49869e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/annotation/AnnotationMethodHandlerAdapter.java

+1
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ public ModelAndView getModelAndView(Method handlerMethod,
731731

732732
if (returnValue != null && AnnotationUtils.findAnnotation(handlerMethod, ResponseBody.class) != null) {
733733
handleResponseBody(returnValue, webRequest);
734+
return null;
734735
}
735736

736737
if (returnValue instanceof ModelAndView) {

0 commit comments

Comments
 (0)