<security:http entry-point-ref="casEntryPoint" use-expressions="true">
<security:intercept-url pattern="/**" access="hasAnyRole(All roles)" />
<security:intercept-url pattern="/unauthorized" access="hasRole('ROLE_UNAUTHORIZED')" />
<security:intercept-url pattern="/unauthorized" access="!hasAuthority('ROLE_SUPER_ADMIN')" />
</security:http>
Я хочу ограничить URL-адреса для определенных ролей.
<security:intercept-url pattern="/unauthorized" access="!hasAuthority('ROLE_SUPER_ADMIN')" />
Я пробовал, но не работает.
См. Изображение, я вошел в систему как администратор, но я могу получить доступ к / неавторизованным с панели URL.