Skip to content
Advertisement

Can you set a dynamic value to @PreAuthorize in Spring?

Right now I use

JavaScript

But I want the CREATE_USER_PRIVILEGE to come from a function(). Is this possible?

Advertisement

Answer

You could do something like this:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement