com.github.yiuman.citrus.security.properties.CitrusProperties Maven / Gradle / Ivy
package com.github.yiuman.citrus.security.properties;
import com.github.yiuman.citrus.security.jwt.JwtProperties;
import com.github.yiuman.citrus.security.verify.VerifyProperties;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Citrus的配置信息集中
*
* @author yiuman
* @date 2020/3/22
*/
@Component
@Configurable
@ConfigurationProperties(prefix = "citrus")
public class CitrusProperties {
/**
* 是否打印banner
*/
private boolean banner = true;
/**
* 安全配置
*/
private SecurityProperties security = new SecurityProperties();
/**
* 校验码配置
*/
private VerifyProperties verify = new VerifyProperties();
/**
* JWT相关配置
*/
private JwtProperties jwt = new JwtProperties();
public CitrusProperties() {
}
public boolean isBanner() {
return banner;
}
public void setBanner(boolean banner) {
this.banner = banner;
}
public SecurityProperties getSecurity() {
return security;
}
public void setSecurity(SecurityProperties security) {
this.security = security;
}
public VerifyProperties getVerify() {
return verify;
}
public void setVerify(VerifyProperties verify) {
this.verify = verify;
}
public JwtProperties getJwt() {
return jwt;
}
public void setJwt(JwtProperties jwt) {
this.jwt = jwt;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy