R
R
Romanchitoz2019-01-31 16:59:06
Java
Romanchitoz, 2019-01-31 16:59:06

How to set up access in Spring Security?

My question is:
To restrict access to path /admin
intercept-url pattern="/admin" access="hasRole('ROLE_ADMIN')"
But how to restrict access to binders eg:
/admin/1
/admin/1/2
etc.?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
al_gon, 2019-01-31
@Romanchitoz

intercept-url pattern="/admin/*" access="hasRole('ROLE_ADMIN')"

https://www.baeldung.com/spring-security-expressio...
If you meant access control lists (acl) then https://www.baeldung.com/spring-security-acl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question