spring boot에서 restTemplate 호출시 응답값을 deserialize 하는 과정에 오류 해결.
오류 : Cannot deserialize instance of object out of START_ARRAY token
data class XxxRes(
var code: Int = -1,
var message: String = "",
@JsonFormat(with = [JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY])
var info: List<XxxItemRes>? = null
)
data class XxxItemRes(
var type: String? = null,
...
)
'스터디' 카테고리의 다른 글
로컬에서 임시 외부 도메인 생성하기 (0) | 2020.11.16 |
---|---|
String Bean vs Static method 언제 어느걸 사용해야할까? (0) | 2020.10.13 |
wiremock. stateful-behaviour (0) | 2020.08.04 |
flutter. flutter timer tutorial (0) | 2020.07.28 |