fun.tusi.limit.config.LimitCatProperties Maven / Gradle / Ivy
package fun.tusi.limit.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.time.Duration;
import java.util.Map;
/**
* 业务调用流控配置
* @author xy783
*/
@Data
@ConfigurationProperties(prefix = "watchcat.limit")
public class LimitCatProperties {
private boolean enabled = false;
private Map> scenes;
@Data
public static class LimitRule {
private Long frequency;
private String message;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy