Skip to main content
PCSalt logo
YouTube GitHub

# spring-security

2 posts

Spring Security — Role-Based Access Control (RBAC)

Implement role-based access control in Spring Boot 4 — roles vs authorities, @PreAuthorize, method-level security, hierarchical roles, and database-backed permissions.

Security 2 min read

Spring Security — JWT Authentication from Scratch

Implement JWT authentication in Spring Boot 4 with Spring Security 7 — login endpoint, token generation, validation, refresh tokens, and protected routes.

Spring Boot 1 min read