Karanbir Singh
1 min readMay 3, 2020

--

@PreAuthorize("hasAuthority('ADMIN')")

using hasAuthority Works

but hasRole doesnot

how to make the hasRole working?

--

--

Karanbir Singh
Karanbir Singh

Written by Karanbir Singh

API developer + Web Application developer + Devops Engineer = Full Stack Developer

Responses (1)