- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 SpringMVC Controller 的使用及请求参数的获取
PathVariable顾名思义,获取路径中的参数;如请求为:http://localhost:8080/girl/23/hello/后台相应的代码为:23即为后台获取的参数PathVariable@GetMapping(value = "/{id}/hello") @ResponseBody public int say(@PathVariable("id") Integer id){ ...
2018-03-17 11:56:14 1437
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人