AntMatchers path variable Spring security

Viewed 1994

I using antMatchers for set permission and role, but i cann't handle path variable for it. Please help me

.antMatchers("/admin/code/certificate/{id}/proc")

                .access("hasAnyRole('ROLE_CERTIFICATE_EDIT', 'ROLE_CERTIFICATE_ALL')")
            .antMatchers("/admin/code/certificate/*")
                .access("hasAnyRole('ROLE_CERTIFICATE_VIEW', 'ROLE_CERTIFICATE_EDIT', 'ROLE_CERTIFICATE_ALL')")
0 Answers
Related