package com.cwhelp.component.jwt.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * jwt配置项
 * @author yan.y
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "project.jwt")
public class JwtProjectProperties {
    // jwt秘钥
    private String secret = "mySecret";
    // 过期时间(天)，默认3天
    private Integer expired = 3;
    // 权限模式-路径拦截
    private boolean patternPath = false;
    // 权限模式-注解拦截
    private boolean patternAnno = true;
}
