提交 42244dd7 编写于 作者: 冰 河's avatar 冰 河

提交《Spring核心技术》第47章文章

上级 e0761e46
......@@ -104,6 +104,7 @@
* [《Spring核心技术》第44章:深度解析@RestController注解](https://articles.zsxq.com/id_wrrk6j19tov0.html)
* [《Spring核心技术》第45章:深度解析@RequestMapping注解](https://articles.zsxq.com/id_lr7351z398mb.html)
* [《Spring核心技术》第46章:深度解析@RequestParam注解](https://articles.zsxq.com/id_uvbwbxp5pwgw.html)
* [《Spring核心技术》第47章:深度解析@PathVariable注解](https://articles.zsxq.com/id_27gccis9me0v.html)
#### 作业篇
* [《Spring核心技术》作业:专栏整体作业](https://t.zsxq.com/0cK9NLELB)
......
......@@ -29,7 +29,6 @@ import org.springframework.web.bind.annotation.RestController;
*/
@RestController
public class PathVariableController {
@RequestMapping(value = "/user/{id}/{name}")
public String getUser(@PathVariable("id") String id, @PathVariable("name") String name){
return new User(id, name).toString();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册