diff --git a/platform/java-cache/src/main/java/com/hoelee/platform/cache/SecurityProperties.java b/platform/java-cache/src/main/java/com/hoelee/platform/cache/SecurityProperties.java index ca08206f..a7c0f0d7 100644 --- a/platform/java-cache/src/main/java/com/hoelee/platform/cache/SecurityProperties.java +++ b/platform/java-cache/src/main/java/com/hoelee/platform/cache/SecurityProperties.java @@ -4,3 +4,13 @@ import jakarta.validation.constraints.NotBlank; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.validation.annotation.Validated; +/** + * @version v2, 2024-10-30 08:10:00PM + * @author hoelee + * Learning note: credentials are configuration inputs, keeping real deployment values out of source control. + */ +@Validated +@ConfigurationProperties(prefix = "app.security") +public record SecurityProperties(@NotBlank String editorUsername, @NotBlank String editorPassword) { +} +