feat(java-cache): add
This commit is contained in:
1 parent
d968e15e31
commit
04d71d17f9
1 file changed
+16
+16
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user