批注接口 JsonMixin


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface JsonMixin
Provides a mixin class implementation that registers with Jackson when using JsonMixinModule.
从以下版本开始:
2.7.0
作者:
Guirong Hu
另请参阅:
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    Class<?>[]
    The types that are handled by the provided mix-in class.
    Class<?>[]
    Alias for the type() attribute.
  • 元素详细资料

    • value

      @AliasFor("type") Class<?>[] value
      Alias for the type() attribute. Allows for more concise annotation declarations e.g.: @JsonMixin(MyType.class) instead of @JsonMixin(type=MyType.class).
      返回:
      the mixed-in classes
      从以下版本开始:
      2.7.0
      默认值:
      {}
    • type

      @AliasFor("value") Class<?>[] type
      The types that are handled by the provided mix-in class. value() is an alias for (and mutually exclusive with) this attribute.
      返回:
      the mixed-in classes
      从以下版本开始:
      2.7.0
      默认值:
      {}