posted 6 years ago
hi
I use spring boot in a rest architecture and i would like to allow only some user to access some function.
In one of my service interface, i added this annotation
@PreAuthorize("hasRole('ADMIN')")
but actually that don't work, all role seem to have access to this function
do i need another thing to setup in the config?