Spring Security: @PreAuthorized(hasAuthority ) with list as parameters

前端 未结 0 1545
轻奢々
轻奢々 2020-12-31 00:56

Is it possible to use @PreAuthorize and hasAuthority with a list of values?

@PostMapping("/post")
@PreAuthorize("hasAuthority(#parameters.list)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题