
Springboot Patterns
A solid reference for the controller-service-repository pattern and common Spring Boot plumbing. You get working examples of pagination, validation with Bean Validation annotations, global exception handlers, caching with @Cacheable, async methods, and request logging filters. The code leans heavily on constructor injection and records for DTOs, which is clean. One thing worth noting: the rate limiting example includes a detailed security note about X-Forwarded-For headers and reverse proxies, which is the kind of production detail that actually matters. Use this when you're setting up a new Spring Boot API or need to remember how Spring Data JPA queries or @ControllerAdvice work without digging through documentation.
- skills.sh installs
- 6.1K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --skill springboot-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Spring Boot Development Patterns
Spring Boot architecture and API patterns for scalable, production-grade services.
When to Activate
- Building REST APIs with Spring MVC or WebFlux
- Structuring controller → service → repository layers
- Configuring Spring Data JPA, caching, or async processing
- Adding validation, exception handling, or pagination
- Setting up profiles for dev/staging/production environments
- Implementing event-driven patterns with Spring Events or Kafka
REST API Structure
@RestController
@RequestMapping("/api/markets")
@Validated
class MarketController {
private final MarketService marketService;
MarketController(MarketService marketService) {
this.marketService = marketService;
}
@GetMapping
ResponseEntity<Page<MarketResponse>> list(
@RequestParam(defaultValue = "0") int page,
@RequestParam(defaultValue = "20") int size) {
Page<Market> markets = marketService.list(PageRequest.of(page, size));
return ResponseEntity.ok(markets.map(MarketResponse::from));
}
Sponsors
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Backend & APIs, DevOps & CI/CD, Code Review & Quality, Java & JVM, Design & UI/UX
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Context Budget6.1K
- Accessibility6.1K
- Nestjs Patterns6.1K
- Seo6.1K
- Django Security6.1K
- Git Workflow6K
- Python Testing6K
- Strategic Compact6K
- Design System6K
- Browser Qa6K
- Springboot Security6K
- Search First6K
- Nextjs Turbopack6K
- Brand Voice6K
- Jira Integration6K
- Laravel Tdd6K
- Fastapi Patterns6K
- Remotion Video Creation6K
- React Patterns5.9K
- Perl Security5.9K
- Kotlin Coroutines Flows5.9K
- React Performance5.9K
- Kotlin Patterns5.9K
- Architecture Decision Records5.9K