第一步. 在controller层加上注解:@CrossOrigin

ssm 解决跨域问题

第二步. 在方法里添加获得数据的请求方式:method = RequestMethod.POST

ssm 解决跨域问题

 

 

 

如此快速解决

相关文章:

  • 2021-12-27
猜你喜欢
  • 2021-12-24
  • 2022-12-23
  • 2021-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
相关资源
相似解决方案