前端传递 时间 2020-08-31 02:47:17 格式
后台无法接收 返回400 错误
在后台 统一格式
@Controller
@RequestMapping(value = "/test")
public class BidContractProtocolController {
@InitBinder
public void initBinder(WebDataBinder binder) {
binder.registerCustomEditor(Date.class, new CustomDateEditor(new
SimpleDateFormat("yyyy-MM-dd HH:mm:ss"), true));
}
}