类 AbstractJsonpResponseBodyAdvice

  • 所有已实现的接口:
    ResponseBodyAdvice<Object>

    @Deprecated
    public abstract class AbstractJsonpResponseBodyAdvice
    extends AbstractMappingJacksonResponseBodyAdvice
    已过时。
    Will be removed as of Spring Framework 5.1, use CORS instead.
    A convenient base class for a ResponseBodyAdvice to instruct the MappingJackson2HttpMessageConverter to serialize with JSONP formatting.

    Sub-classes must specify the query parameter name(s) to check for the name of the JSONP callback function.

    Sub-classes are likely to be annotated with the @ControllerAdvice annotation and auto-detected or otherwise must be registered directly with the RequestMappingHandlerAdapter and ExceptionHandlerExceptionResolver.

    从以下版本开始:
    4.1
    作者:
    Rossen Stoyanchev