我有一個GET請求,該請求以YYYY-MM-DD格式發送日期到Spring Controller??刂破鞔a如下:@RequestMapping(value="/fetch" , method=RequestMethod.GET) public @ResponseBody String fetchResult(@RequestParam("from") Date fromDate) { //Content goes here }我正在使用Firebug檢查時,請求已正確發送。我收到錯誤:HTTP狀態400:客戶端發送的請求在語法上不正確。如何使控制器接受這種日期格式?請幫忙。我究竟做錯了什么?
添加回答
舉報
0/150
提交
取消