ContentNegotiationConfigurer | ContentNegotiationConfigurer.defaultContentType(MediaType... defaultContentTypes) | Set the default content type(s) to use when no content type is requested in order of priority. |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.defaultContentTypeStrategy(ContentNegotiationStrategy defaultStrategy) | |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.favorParameter(boolean favorParameter) | Whether a request parameter ("format" by default) should be used to determine the requested media type. |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.favorPathExtension(boolean favorPathExtension) | 已过时。 |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.ignoreAcceptHeader(boolean ignoreAcceptHeader) | Whether to disable checking the 'Accept' request header. |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.ignoreUnknownPathExtensions(boolean ignore) | 已过时。 |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.mediaType(String extension, MediaType mediaType) | Add a mapping from a key, extracted from a path extension or a query parameter, to a MediaType. |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.mediaTypes(Map<String,MediaType> mediaTypes) | |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.parameterName(String parameterName) | |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.replaceMediaTypes(Map<String,MediaType> mediaTypes) | |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.useJaf(boolean useJaf) | 已过时。 |
---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.useRegisteredExtensionsOnly(boolean useRegisteredExtensionsOnly) | When favorPathExtension is set, this property determines whether to use only registered MediaType mappings to resolve a path extension to a specific MediaType. |
---|