SKILL

springboot-patterns

Spring Boot 架构模式、REST API 设计、分层服务、数据访问、缓存、异步处理和日志。适用于 Java Spring Boot 后端工作。

译文已校对
查看英文原文

Spring Boot architecture patterns, REST API design, layered services, data access, caching, async processing, and logging. Use for Java Spring Boot backend work.

适用对象:设计与内容创作。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Spring Boot Development Patterns
  • When to Activate
  • REST API Structure
  • Repository Pattern (Spring Data JPA)
  • Service Layer with Transactions
  • DTOs and Validation
  • Exception Handling
  • Caching

Spring Boot architecture and API patterns for scalable, production-grade services. 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 Requires @EnableCaching on a configuration class. Requires @EnableAsync on a configuration class. Production recommendation: Use Resilience4j or Spring Retry for production retry logic with circuit breakers, metrics, and configurable policies. Security Note: The X-Forwarded-For header is untrusted by default because clients can spoof it. Only use forwarded headers when: 1. Your app is behind a trusted reverse proxy (nginx, AWS ALB, etc.) 2. You have registered ForwardedHeaderFilter as a bean 3. You have configured server.forward-headers-strategy=NATIVE or FRAMEWORK in application properties 4. Your proxy is configured to overwrite (not append to) the X-Forwarded-For header When ForwardedHeaderFilter is properly configured, request.getRemoteAddr() will automatically return t

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
affaan-m/ECC
源文件
.kiro/skills/springboot-patterns/SKILL.md
固定版本
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:affaan-m/ECC · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:48.678Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。