com.founder.core.starter.properties.RateLimiterRedisProperties Maven / Gradle / Ivy
package com.founder.core.starter.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = RateLimiterRedisProperties.PREFIX)
public class RateLimiterRedisProperties {
public static final String PREFIX = "spring.redis";
private String host;
private String password;
private int port = 6379;
private int database = 1;
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public int getDatabase() {
return database;
}
public void setDatabase(int database) {
this.database = database;
}
}