批注接口 JsonMixin
Provides a mixin class implementation that registers with Jackson when using
JsonMixinModule
.- 从以下版本开始:
- 2.7.0
- 作者:
- Guirong Hu
- 另请参阅:
-
可选元素概要
可选元素
-
元素详细资料
-
value
Alias for thetype()
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
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
- 默认值:
{}
-