How to deserialize a class with overloaded constructors using JsonCreator

后端 未结 4 1411
挽巷
挽巷 2020-12-08 18:24
4条回答
  •  温柔的废话
    2020-12-08 18:42

    Though its not properly documented, you can only have one creator per type. You can have as many constructors as you want in your type, but only one of them should have a @JsonCreator annotation on it.

提交回复
热议问题