4

LocalDateTime Feign 调用序列化失败

 2 years ago
source link: https://www.oschina.net/question/3882000_2324118
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

LocalDateTime Feign 调用序列化失败

fjigww 发布于 昨天 12:48

LocalDateTime Feign时调用序列化失败,被调用方总是会序列化为

{
    "onlineTime": {
        "hour": 11,
        "minute": 4,
        "second": 0,
        "dayOfYear": 289,
        "dayOfWeek": "SATURDAY",
        "month": "OCTOBER",
        "dayOfMonth": 16,
        "year": 2021,
        "monthValue": 10,
        "nano": 207000000,
        "chronology": {
            "calendarType": "iso8601",
            "id": "ISO"
        }
    }
}

导致接收失败,正常接口调用序列化没问题 yyyy-MM-dd HH🇲🇲ss,怎么解决啊?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK