| name | spring-boot-verify |
| description | Verify Spring Boot 4.x projects for correct dependencies, configuration, and migration readiness. Use when analyzing pom.xml, build.gradle, application.yml, discussing Spring Boot project setup, dependency versions, configuration validation, version compatibility, migration to Spring Boot 4, deprecated dependencies, or when user mentions "verify project", "check dependencies", "upgrade Spring Boot", "migration readiness", "Jackson 3", "@MockBean deprecated", or "Spring Security 7". |
Spring Boot 4.x Project Verification
Analyzes Spring Boot projects for dependency compatibility, configuration correctness, and migration readiness.
Verification Workflow
- Detect Build System → Find pom.xml or build.gradle, extract Spring Boot version
- Analyze Dependencies → Check versions, find deprecated libraries, validate compatibility
- Validate Configuration → Check application.yml/properties, security config, actuator settings
- Generate Report → Structured markdown with severity levels and remediation code
- Lookup Docs → Use Exa MCP to fetch latest Spring Boot 4.x documentation when needed
Dependency Quick Reference
| Check |
Severity |
Action |
| Spring Boot version < 4.0 |
CRITICAL |
Upgrade to 4.0.x |
Jackson 2.x (com.fasterxml) |
CRITICAL |
Migrate to Jackson 3 (tools.jackson) |
@MockBean in tests |
ERROR |
Replace with @MockitoBean |
| Undertow server |
ERROR |
Switch to Tomcat or Jetty |
| Java version < 17 |
ERROR |
Minimum Java 17 required |
spring-boot-starter-web |
WARNING |
Use spring-boot-starter-webmvc |
Configuration Quick Reference
| Check |
Severity |
Action |
Security and() chaining |
CRITICAL |
Convert to Lambda DSL closures |
antMatchers() usage |
ERROR |
Replace with requestMatchers() |
authorizeRequests() |
ERROR |
Replace with authorizeHttpRequests() |
| All actuator endpoints exposed |
WARNING |
Limit to health, info, metrics |
| 100% trace sampling |
WARNING |
Use 10% in production |
Tools to Use
- Glob → Find
**/pom.xml, **/build.gradle*, **/application.{yml,properties}
- Grep → Search for deprecated patterns (
@MockBean, com.fasterxml, .and())
- Read → Inspect build files and configuration
- Exa MCP → Fetch latest Spring Boot 4.x docs:
mcp__exa__web_search_exa
Output Format
Generate verification reports with this structure:
## Spring Boot 4.x Verification Report
### Summary
- **Project**: {name}
- **Boot Version**: {detected version}
- **Issues Found**: {n} Critical, {n} Errors, {n} Warnings
### Critical Issues / Errors / Warnings
[Issue details with code remediation]
Detailed References
Critical Reminders
- Check Spring Boot version first — Many issues are version-specific
- Jackson 3 namespace change —
com.fasterxml.jackson to tools.jackson
- Security 7 Lambda DSL —
and() method removed, closures required
- Testing annotations changed —
@MockBean to @MockitoBean
- Use official docs — https://docs.spring.io/spring-boot/documentation.html
Related Skills
spring-boot-security — Deep security configuration verification
spring-boot-testing — Testing patterns and coverage analysis
spring-boot-observability — Actuator, metrics, and tracing setup
spring-boot-modulith — Module structure verification
domain-driven-design — DDD architecture patterns