org.springframework.boot.jackson

Annotation Type JsonMixin



  • @Target(value=TYPE)
     @Retention(value=RUNTIME)
     @Documented
    public @interface JsonMixin
    Provides a mixin class implementation that registers with Jackson when using JsonMixinModule.
    Since:
    2.7.0
    See Also:
    JsonMixinModule
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      java.lang.Class<?>[] type
      The types that are handled by the provided mix-in class.
      java.lang.Class<?>[] value
      Alias for the type() attribute.
    • Element Detail

      • value

        @AliasFor(value="type")
        public abstract java.lang.Class<?>[] value
        Alias for the type() attribute. Allows for more concise annotation declarations e.g.: @JsonMixin(MyType.class) instead of @JsonMixin(type=MyType.class).
        Returns:
        the mixed-in classes
        Since:
        2.7.0
        Default:
        {}
      • type

        @AliasFor(value="value")
        public abstract java.lang.Class<?>[] type
        The types that are handled by the provided mix-in class. value() is an alias for (and mutually exclusive with) this attribute.
        Returns:
        the mixed-in classes
        Since:
        2.7.0
        Default:
        {}