SPR-6148 - @ResponseBody with returned String results in unresolvable view ServletException
This commit is contained in:
parent
5b12503c47
commit
e49869ea78
|
|
@ -731,6 +731,7 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen
|
||||||
|
|
||||||
if (returnValue != null && AnnotationUtils.findAnnotation(handlerMethod, ResponseBody.class) != null) {
|
if (returnValue != null && AnnotationUtils.findAnnotation(handlerMethod, ResponseBody.class) != null) {
|
||||||
handleResponseBody(returnValue, webRequest);
|
handleResponseBody(returnValue, webRequest);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (returnValue instanceof ModelAndView) {
|
if (returnValue instanceof ModelAndView) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue