package com.custom.webui.config.props; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; /** JWT 相关配置,前缀 {@code webui.jwt}。 */ @Data @ConfigurationProperties(prefix = "webui.jwt") public class JwtProperties { /** 签名密钥,HS256 要求 >= 32 字节 */ private String secret = "custom-webui-dev-secret-key-change-me-in-production-32bytes"; /** 有效期毫秒数,默认 7 天 */ private long expireMillis = 604800000L; /** 签发者,解析时会强校验 */ private String issuer = "custom-webui"; }