📜  spring 预授权两个角色 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:11.850000             🧑  作者: Mango

代码示例2
hasAnyRole() 

When you need to support multiple roles, you can use the hasAnyRole() expression.

@PreAuthorize("hasAnyRole('ADMIN','DB-ADMIN')")