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