Annotation Interface IsAdmin


@Target(METHOD) @Retention(RUNTIME) @PreAuthorize("hasRole(\'Admin\')") public @interface IsAdmin
An interface which enforces the requirement of having the Admin role in Spring Security.

Functionally equivalent to @PreAuthorize("hasRole('Admin')")