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

master
Arjen Poutsma 15 years ago
parent 5b12503c47
commit e49869ea78
  1. 1
      org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/annotation/AnnotationMethodHandlerAdapter.java

@ -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…
Cancel
Save