Deserialize JsonElement with a JsonArray inside with two possible jsonelements but only one type at the same

后端 未结 0 1579
时光取名叫无心
时光取名叫无心 2020-11-27 03:39

I\'m on a Java Spring Boot project that makes API requests using RestTemplates. In one endpoint I return a WorkDetail object that can be of two types WorkDetailA WorkDetailB

相关标签:
回答
  • 消灭零回复
提交回复
热议问题