3
我想在我的Spring MVC 3應用程序返回JSON,但其未能對喬達DateTimeFormatter
傑克遜未能序列化喬達DateTimeFormatter
com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.joda.time.format.DateTimeFormat$StyleFormatter and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)) (through reference chain: java.util.HashMap["personDay"]->mypackage.PersonDay["dateTimeFormatter"]->org.joda.time.format.DateTimeFormatter["parser"])
它看起來像我可能需要爲這個自定義序列化,但我我不知道從哪裏開始。
您拍照時看看[此](http://stackoverflow.com/a/3272244/3594214)後 – chrisfahlin