Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jackson は long x = 1234 を {x:1234} にシリアライズします いくつかの理由で {x:"1234"} が必要です
ジャクソンの注釈はありますか?
ありがとう。
次の注釈を使用して、long を文字列としてシリアル化できます。
@JsonSerialize(using=ToStringSerializer.class) public long getId() { return id; }