差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 | |||
java:jackson:annotation:jsonserialize:convertdate [2016/03/11 00:12] tony |
java:jackson:annotation:jsonserialize:convertdate [2016/03/11 00:25] tony |
||
---|---|---|---|
行 104: | 行 104: | ||
mapper.registerModule(m); | mapper.registerModule(m); | ||
</code> | </code> | ||
+ | ==== 後記 ==== | ||
+ | - 時間轉換可以透過[[http://www.joda.org/joda-time/|joda-time]]去實作你想要的格式。 | ||
+ | - Jackson提供了[[https://github.com/FasterXML/jackson-datatype-joda/wiki|joda模組]],讓你轉換更容易。 | ||
===== Reference ===== | ===== Reference ===== | ||
* [[http://stackoverflow.com/questions/5471379/ways-to-convert-unix-linux-time-to-windows-time|ways-to-convert-unix-linux-time-to-windows-time]] | * [[http://stackoverflow.com/questions/5471379/ways-to-convert-unix-linux-time-to-windows-time|ways-to-convert-unix-linux-time-to-windows-time]] |