本篇整理下Spring、SpringBoot的Controller中,获取提交的参数的方式 如http://www.example.com/test?id=1&cat=xxx @RequestMapping(value = "/test", method = RequestMethod.GET) public @ResponseBody String test(@RequestParam(value = "id", required = true) long id, @RequestParam(value …