前台ajax请求,地址正确,但是报错不进入后台

出现上述问题,可能的情况是

  1.ajax用的post,而后台限定用get,或者所有的post请求都被拦截,所以不能正常进入并且报错403

@RequestMapping(value="validateAdmin",method = RequestMethod.GET)

  2.ajax用的返回值"json",而后台支持的数据格式不是这个

@RequestMapping(value = "/list", method = RequestMethod.GET,produces = "text/plain; charset=utf-8")

 

相关文章:

  • 2021-09-15
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2021-12-20
  • 2021-11-15
  • 2021-09-26
  • 2021-09-26
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2021-10-17
  • 2021-12-11
  • 2021-09-07
  • 2021-10-09
相关资源
相似解决方案