when fetch
is used in the front end to make a request, the back end LocalDateTime
serializes normally
frontend request code
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.time.LocalDateTime out of START_ARRAY token
at [Source: {"code":200,"message":null,"data":{"id":1032486183939768321,"startTime":[2018,8,23,13,4,23],"endTime":[2018,8,23,13,40,54]}}; line: 1, column: 103] (through reference chain: com.rx.f3d.common.web.JsonResult["data"]->com.rx.f3d.module.entity.game.Game["startTime"])
so why is the use of SpringTest testing inconsistent with the front end? And how to serialize / deserialize LocalDateTime
correctly?