SKILL

springboot-patterns

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

Target: Design & content creation. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original Japanese text

Topics in the source

  • Spring Boot 開発パターン
  • REST API構造
  • リポジトリパターン(Spring Data JPA)
  • トランザクション付きサービスレイヤー
  • DTOと検証
  • 例外ハンドリング
  • キャッシング
  • 非同期処理

スケーラブルで本番グレードのサービスのためのSpring BootアーキテクチャとAPIパターン。 構成クラスで@EnableCachingが必要です。 構成クラスで@EnableAsyncが必要です。 セキュリティノート: X-Forwarded-Forヘッダーはデフォルトでは信頼できません。クライアントがそれを偽装できるためです。 転送ヘッダーは次の場合のみ使用してください: 1. アプリが信頼できるリバースプロキシ(nginx、AWS ALBなど)の背後にある 2. ForwardedHeaderFilterをBeanとして登録済み 3. application propertiesでserver.forward-headers-strategy=NATIVEまたはFRAMEWORKを設定済み 4. プロキシがX-Forwarded-Forヘッダーを上書き(追加ではなく)するよう設定済み ForwardedHeaderFilterが適切に構成されている場合、request.getRemoteAddr()は転送ヘッダーから正しいクライアントIPを自動的に返します。この構成がない場合は、request.getRemoteAddr()を直接使用してください。これは直接接続IPを返し、唯一信頼できる値です。 Springの@Scheduledを使用するか、キュー(Kafka、SQS、RabbitMQなど)と統合します。ハンドラーをべき等かつ観測可能に保ちます。 構造化ロギング(JSON)via Logbackエンコーダー メトリクス: Micrometer + Prometheus/OTel トレーシング: Micrometer TracingとOpenTelemetryまたはBraveバックエンド コンストラクタインジェクションを優先、フィールドインジェクションを避ける RFC 7807エラーのためにspring.mvc.problemdetails.enabled=trueを有効化(Spring Boot 3+) ワークロードに応じてHikariCPプールサイズを構成、タイムアウトを設定 クエリに@Transactional(readOnly = true)を使用 @NonNullとOptionalで適切にnull安全性を強制 覚えておいてください: コントローラーは薄く、サービスは焦点を絞り、リポジトリはシンプルに、エラーは集中的に処理します。保守性とテスト可能性のために最適化してください。

Source repository
affaan-m/ECC
Source file
docs/ja-JP/skills/springboot-patterns/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:49.715Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.