mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-05-02 20:09:31 +01:00
SPR-6148 - @ResponseBody with returned String results in unresolvable view ServletException
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2011 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+1
@@ -731,6 +731,7 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen
|
||||
|
||||
if (returnValue != null && AnnotationUtils.findAnnotation(handlerMethod, ResponseBody.class) != null) {
|
||||
handleResponseBody(returnValue, webRequest);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (returnValue instanceof ModelAndView) {
|
||||
|
||||
Reference in New Issue
Block a user