intermediateSpring Security

What is @PreAuthorize and @Secured? What is the difference?

Tests whether you know @PreAuthorize supports full SpEL expressions while @Secured only supports simple role checks.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

What is @PreAuthorize and @Secured? What is the difference?

Next Step

Continue to What is CSRF protection? When should you disable it?← Back to all Spring Boot & Microservices questions