关于axios配置请求头及使用@RequestBody和@RequestParam的感悟
最近做了一个前端是vue+后台springboot的项目,采用前后端分离的方式,用json传值。
当我后端采用
@PostMapping(value = "/getSortWithFiveNews")
public Result getSortWithFiveNews(@RequestParam("sid")Long sid){
return sortService.get...
原创
2019-12-27 10:54:00 ·
1212 阅读 ·
1 评论