configuration
Type-safe validated configuration properties from application.yml. Use when adding any externalisable value.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Type-safe validated configuration properties from application.yml. Use when adding any externalisable value.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Team quality gate as executable instruction. Use when reviewing completed work before merge, or when processing PR review comments received from other reviewers.
Generate well-formed user stories from technical context. Use when generating or improving story descriptions for an issue tracker.
Consistent error handling with named exceptions and global handler. Use when implementing any method that can fail with a business reason.
Consistent, safe log statements with correct levels and no PII. Use when adding or reviewing log statements.
Team standard for improving existing code without changing behaviour. Use when refactoring code.
Team threat model as executable instruction. Use when checking code for security issues before merge.
| name | configuration |
| description | Type-safe validated configuration properties from application.yml. Use when adding any externalisable value. |
When to load it: When adding any new configurable value or environment-specific behaviour to a feature.
Produces type-safe, validated configuration properties bound from application.yml.
Enforces fail-fast validation at startup and keeps configurable values out of Java source.
application.yml. Never hardcoded in Java source.@ConfigurationProperties class. Do not use @Value
for more than one related property.@Validated. Fail fast — a misconfiguration discovered at
runtime is worse than a failed startup.application.yml with a comment.@ConfigurationProperties(prefix = "[feature]")
@Validated
public record [Feature]Properties(
@NotBlank String [requiredProperty],
@Min(1) @Max(100) int [boundedProperty],
@Positive double [positiveProperty]
) {}
# application.yml
[feature]:
# [What this property controls. Required.]
[required-property]: [value]
# [What this property controls. Range: 1–100. Default: 10.]
[bounded-property]: 10
# [What this property controls. Must be positive.]
[positive-property]: 0.7
Register in Spring Boot:
@Configuration
@EnableConfigurationProperties([Feature]Properties.class)
public class [Feature]Config {}
application.yml@Value when two or more related properties exist — use @ConfigurationProperties@Validated — startup validation is not optional