Answer the question
In order to leave comments, you need to log in
spring security. How, depending on the user's role, to execute different methods when requesting an address?
There is a request for an address. It is necessary, depending on the user's rights, to perform different methods.
Answer the question
In order to leave comments, you need to log in
Try calling a method in the controller
And depending on what is there, perform different actions
or
if(SecurityContextHolderAwareRequestWrapper.isUserInRole("admin")){
//Some actions
}
else {
//Some actions
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question