GET请求
前端:
axios.get("/account/login",{
params:{
username :loginName,
password :password
}
}).then((data)=>{
});
后端:
@GetMapping("/login")
@ResponseBody
public ResultVO login(@RequestParam("username") String username,@RequestParam("password") String password) {
ResultVO resultVO =adminService.login(username, password);
return resultVO;
}
网友评论