单项选择题

springmvc的Controller方法,通过哪个注解实现从url的path里获取参数()。

A.@RestMapping
B.@PathVariable
C.@requestParam
D.@ResponseBody