如果后端接收参数上有 @RequestParam 这个注解,那么前端就要使用axios的get请求。 如果前端要使用axios的post请求,那么后端就要使用类接收,并且类前面要带上 @RequestBody 注解。