Generated by
JDiff

org.springframework.web.servlet.config.annotation Documentation Differences

This file contains all the changes in documentation in the package org.springframework.web.servlet.config.annotation as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class AsyncSupportConfigurer, AsyncSupportConfigurer setTaskExecutor(AsyncTaskExecutor)

Set the default AsyncTaskExecutor to use when a controller method returns a Callable. Controller methods can override this default on a per-request basis by returning an MvcAsyncTaskWebAsyncTask.

By default a SimpleAsyncTaskExecutor instance is used and it's highly recommended to change that default in production since the simple executor does not re-use threads. @param taskExecutor the task executor instance to use by default


Class ContentNegotiationConfigurer

Helps with configuring a ContentNegotiationManager.

By default strategies for checking the extension of the request path and the {@code Accept} header are registered. The path extension check will perform lookups through the ServletContext and the Java Activation Framework (if present) unless #setMediaTypesmediaTypes(Map) media types are configured. @author Rossen Stoyanchev @since 3.2

Class ContentNegotiationConfigurer, ContentNegotiationConfigurer favorParameter(boolean)

Indicate whether a request parameter should be used to determine the requested media type with the 2nd highest priority, i.e. after path extensions but before the {@code Accept} header.

The default value is {@code false}. If set to to {@code true}, a request for {@code /hotels?format=pdf} will be interpreted as a request for {@code "application/pdf"} regardless of the {@code Accept} header.

To use this option effectively you must also configure the MediaType type mappings via .setMediaTypesmediaTypes(Map). @see #parameterName(String)

Class ContentNegotiationConfigurer, ContentNegotiationConfigurer parameterName(String)

Set the parameter name that can be used to determine the requested media type if the .setFavorParameterfavorParameter(boolean) property is {@code true}.

The default parameter name is {@code "format"}.

Class ContentNegotiationConfigurer, ContentNegotiationConfigurer useJaf(boolean)

Indicate whether to use the Java Activation Framework as a fallback option to map from file extensions to media types. This is used only when .favorPathExtension(boolean) is set to {@code true}.

The default value is {@code true}. @see #parameterName @see #setMediaTypesmediaTypes(Map)