パッケージ | 説明 |
---|---|
org.springframework.web.servlet.config.annotation | Spring MVC のアノテーションベースのセットアップ。 |
修飾子と型 | メソッドと説明 |
---|---|
ContentNegotiationConfigurer | ContentNegotiationConfigurer.defaultContentType(MediaType... defaultContentTypes) コンテンツ型が優先度順にリクエストされない場合に使用するデフォルトのコンテンツ型を設定します。 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.defaultContentTypeStrategy(ContentNegotiationStrategy defaultStrategy) コンテンツ型がリクエストされていないときに使用するコンテンツ型を決定するために使用するカスタム ContentNegotiationStrategy を設定します。 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.favorParameter(boolean favorParameter) リクエストされたメディア型を判別するためにリクエストパラメーター(デフォルトでは "format" )を使用する必要があるかどうか。 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.favorPathExtension(boolean favorPathExtension) 使用すべきではありません。 5.2.4 以降。 ContentNegotiationManagerFactoryBean.setFavorPathExtension(boolean) の非推奨の注記を参照してください。 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.ignoreAcceptHeader(boolean ignoreAcceptHeader) "Accept" リクエストヘッダーのチェックを無効にするかどうか。 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.ignoreUnknownPathExtensions(boolean ignore) 使用すべきではありません。 5.2.4 以降。 ContentNegotiationManagerFactoryBean.setIgnoreUnknownPathExtensions(boolean) の非推奨の注記を参照してください。 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.mediaType(StringSE extension, MediaType mediaType) パス拡張またはクエリパラメーターから抽出されたキーから MediaType へのマッピングを追加します。 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.mediaTypes(MapSE<StringSE, MediaType> mediaTypes) |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.parameterName(StringSE parameterName) favorParameter(boolean) がオンのときに使用するクエリパラメーター名を設定します。 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.replaceMediaTypes(MapSE<StringSE, MediaType> mediaTypes) mediaType(java.lang.String, org.springframework.http.MediaType) に似ていますが、既存のマッピングを置き換えるためのものです。 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.useJaf(boolean useJaf) 使用すべきではありません。 5.0 以降、逆の動作をする useRegisteredExtensionsOnly(boolean) を推奨 |
ContentNegotiationConfigurer | ContentNegotiationConfigurer.useRegisteredExtensionsOnly(boolean useRegisteredExtensionsOnly) favorPathExtension が設定されている場合、このプロパティは、登録された MediaType マッピングのみを使用して特定の MediaType へのパス拡張を解決するかどうかを決定します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | WebMvcConfigurerAdapter.configureContentNegotiation(ContentNegotiationConfigurer configurer) 使用すべきではありません。 コンテンツネゴシエーションオプションを構成します。 |
protected void | DelegatingWebMvcConfiguration.configureContentNegotiation(ContentNegotiationConfigurer configurer) |
protected void | WebMvcConfigurationSupport.configureContentNegotiation(ContentNegotiationConfigurer configurer) コンテンツネゴシエーションを構成するには、このメソッドをオーバーライドします。 |
default void | WebMvcConfigurer.configureContentNegotiation(ContentNegotiationConfigurer configurer) コンテンツネゴシエーションオプションを構成します。 |