Spring security-Admin can access all endpoints and another endpoints are protected whit @PreAutorize method anotations

后端 未结 0 1654
野的像风
野的像风 2021-01-29 04:50

I want to make all endpoints accessible for the admin role and some of them for other roles. I have many endpoint and many roles so I want to avoid writing hasRole(Admin) on eve

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