クラス MvcNamespaceUtils

java.lang.ObjectSE
org.springframework.web.servlet.config.MvcNamespaceUtils

public abstract class MvcNamespaceUtils extends ObjectSE
MVC 名前空間 BeanDefinitionParsers で使用する便利なメソッド。
導入:
3.1
作成者:
Rossen Stoyanchev, Juergen Hoeller, Brian Clozel, Marten Deinum
  • コンストラクターの詳細

    • MvcNamespaceUtils

      public MvcNamespaceUtils()
  • メソッドの詳細

    • registerDefaultComponents

      public static void registerDefaultComponents(ParserContext context, @Nullable ObjectSE source)
    • registerUrlPathHelper

      public static RuntimeBeanReference registerUrlPathHelper(@Nullable RuntimeBeanReference urlPathHelperRef, ParserContext context, @Nullable ObjectSE source)
      エイリアスが既存の既知の名前に追加されるか、UrlPathHelper の新しいインスタンスがその既知の名前で登録されます(まだ登録されていない場合)。
      戻り値:
      この UrlPathHelper インスタンスへの RuntimeBeanReference
    • registerPathMatcher

      public static RuntimeBeanReference registerPathMatcher(@Nullable RuntimeBeanReference pathMatcherRef, ParserContext context, @Nullable ObjectSE source)
      エイリアスが既存の既知の名前に追加されるか、PathMatcher の新しいインスタンスがその既知の名前で登録されます(まだ登録されていない場合)。
      戻り値:
      この PathMatcher インスタンスへの RuntimeBeanReference
    • registerCorsConfigurations

      public static RuntimeBeanReference registerCorsConfigurations(@Nullable MapSE<StringSE,CorsConfiguration> corsConfigurations, ParserContext context, @Nullable ObjectSE source)
      すでに登録されていない限り、Map<String, CorsConfiguration> (マップされた CorsConfiguration)を既知の名前で登録します。null 以外の CORS 構成が提供されている場合、Bean 定義が更新される可能性があります。
      戻り値:
      この Map<String, CorsConfiguration> インスタンスへの RuntimeBeanReference
    • getContentNegotiationManager

      @Nullable public static ObjectSE getContentNegotiationManager(ParserContext context)
      annotation-driven 要素によって作成または登録された ContentNegotiationManager Bean を見つけます。
      戻り値:
      Bean 定義、Bean 参照、定義されていない場合は null