POST http://localhost:8080/purchase/purchase-apply/update.htm 400 (Bad Request)

n.ajaxTransport.k.cors.a.crossDomain.send

n.extend.ajax

(anonymous function)

n.event.dispatch

n.event.add.r.handle

 

ajax异步提交,springmvc框架

在controller中加入:

@RequestMapping(value = ADD, method = RequestMethod.POST)
@ResponseBody
public Result add(@RequestBody YearContract yearContract)
{

purchaseLongTermContractAo.add(yearContract);
return SUCCESS;
}

在方法体上加入:

@ResponseBody即可解决

 

相关文章:

  • 2021-05-14
  • 2021-08-07
  • 2021-08-07
  • 2022-01-13
  • 2022-12-23
  • 2021-05-05
  • 2022-12-23
  • 2021-08-07
猜你喜欢
  • 2021-09-17
  • 2021-08-07
  • 2021-08-07
  • 2021-08-07
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案