kongdeqiang
2026-10-12 ccf1a44c001e233c158bd168dc2d0d96721af929
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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";
}