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有人建議我如何使用路徑請在預授權變量。