19 lines
376 B
Java
19 lines
376 B
Java
package com.example.caseData.config;
|
|
|
|
import lombok.Getter;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
@Getter
|
|
public class JwtConfig {
|
|
@Value("${jwt.sign-key}")
|
|
private String signKey;
|
|
|
|
@Value("${jwt.ttl}")
|
|
private Integer ttl;
|
|
|
|
@Value("${jwt.algo}")
|
|
private String algo;
|
|
}
|