多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**1.Path参数获取,@PathVariable** ~~~ //path 参数 @RequestMapping(path="/fun5/{id}/{name}",method=RequestMethod.GET) public String fun5(@PathVariable("id") Integer id, @PathVariable("name") String name){ System.out.println(id); System.out.println(name); return "/demo1"; } ~~~ 请求地址 http://localhost:8080/hello/fun5/1/nobb **2.@RestController** @Controller + @ResponseBody