クラス ServletModelAttributeMethodProcessor

java.lang.ObjectSE
org.springframework.web.method.annotation.ModelAttributeMethodProcessor
org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor
実装されたすべてのインターフェース:
HandlerMethodArgumentResolverHandlerMethodReturnValueHandler

public class ServletModelAttributeMethodProcessor extends ModelAttributeMethodProcessor
ServletRequestDataBinder の WebDataBinder を介してデータバインディングを適用する、サーブレット固有の ModelAttributeMethodProcessor

また、名前がモデル属性名と一致し、適切な型変換戦略が存在する場合、URI テンプレート変数またはリクエストパラメーターからモデル属性をインスタンス化するフォールバック戦略を追加します。

導入:
3.1
作成者:
Rossen Stoyanchev, Juergen Hoeller
  • コンストラクターの詳細

    • ServletModelAttributeMethodProcessor

      public ServletModelAttributeMethodProcessor(boolean annotationNotRequired)
      クラスコンストラクター。
      パラメーター:
      annotationNotRequired - "true" の場合、非単純メソッドの引数と戻り値は、@ModelAttribute アノテーションの有無にかかわらずモデル属性と見なされます
  • メソッドの詳細