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 new file mode 100644 index 00000000..a7c0f0d7 --- /dev/null +++ b/platform/java-cache/src/main/java/com/hoelee/platform/cache/SecurityProperties.java @@ -0,0 +1,16 @@ +package com.hoelee.platform.cache; + +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) { +} +