Spring MVC中的@PathVariable
Spring MVC中的@PathVariable是用来获得请求url中的动态参数的,十分方便,复习下: Java代码 @Controller public class TestController { @RequestMapping(value="/user/{userId}/roles/{roleId}",method = RequestMethod...