类 ResponseBodyResultHandler

  • 所有已实现的接口:
    Ordered, HandlerResultHandler

    public class ResponseBodyResultHandler
    extends AbstractMessageWriterResultHandler
    implements HandlerResultHandler
    HandlerResultHandler that handles return values from methods annotated with @ResponseBody writing to the body of the request or response with an HttpMessageWriter.

    By default the order for this result handler is set to 100. As it detects the presence of @ResponseBody it should be ordered after result handlers that look for a specific return type. Note however that this handler does recognize and explicitly ignores the ResponseEntity return type.

    从以下版本开始:
    5.0
    作者:
    Rossen Stoyanchev, Stephane Maldini, Sebastien Deleuze, Arjen Poutsma