spring-boot-security
Installation
SKILL.md
Spring Security 7 for Spring Boot 4
Implements authentication and authorization with Spring Security 7's mandatory Lambda DSL.
Critical Breaking Changes
| Removed API | Replacement | Status |
|---|---|---|
and() method |
Lambda DSL closures | Required |
authorizeRequests() |
authorizeHttpRequests() |
Required |
antMatchers() |
requestMatchers() |
Required |
WebSecurityConfigurerAdapter |
SecurityFilterChain bean |
Required |
@EnableGlobalMethodSecurity |
@EnableMethodSecurity |
Required |
Core Workflow
- Create SecurityFilterChain → 2. Define authorization → 3. Configure authentication → 4. Add method security → 5. Handle CORS/CSRF
See WORKFLOW.md for detailed step-by-step instructions with code examples.