SPR-6148 - @ResponseBody with returned String results in unresolvable view ServletException

This commit is contained in:
Arjen Poutsma 2009-09-25 10:34:54 +00:00
parent 5b12503c47
commit e49869ea78
1 changed files with 1 additions and 0 deletions

View File

@ -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) {