You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
790 B
42 lines
790 B
6 years ago
|
/**
|
||
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
||
|
*
|
||
|
* https://www.renren.io
|
||
|
*
|
||
|
* 版权所有,侵权必究!
|
||
|
*/
|
||
|
|
||
|
package com.epmet.jwt;
|
||
|
|
||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||
|
import org.springframework.context.annotation.Configuration;
|
||
|
|
||
|
/**
|
||
|
* Jwt
|
||
|
*
|
||
|
* @author Mark sunlightcs@gmail.com
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
@Configuration
|
||
|
@ConfigurationProperties(prefix = "jwt.token")
|
||
|
public class JwtTokenProperties {
|
||
|
private String secret;
|
||
|
private int expire;
|
||
|
|
||
|
public String getSecret() {
|
||
|
return secret;
|
||
|
}
|
||
|
|
||
|
public void setSecret(String secret) {
|
||
|
this.secret = secret;
|
||
|
}
|
||
|
|
||
|
public int getExpire() {
|
||
|
return expire;
|
||
|
}
|
||
|
|
||
|
public void setExpire(int expire) {
|
||
|
this.expire = expire;
|
||
|
}
|
||
|
}
|