6
我有一个情况我需要的路径变量传递的参数传递给预授权如何使用路径变量@Preauthorize
@RequestMapping(value="/page/{cmd}", method = RequestMethod.GET)
@PreAuthorize("hasRole(#cmd)")
public void method(@PathVariable String cmd, HttpServletRequest request, HttpServletResponse response){
// my stuff
}
它不working.can有人建议我如何使用路径请在预授权变量。