All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fun.tusi.limit.config.LimitCatProperties Maven / Gradle / Ivy

There is a newer version: 1.0.5-sb3
Show newest version
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