package com.cf.imes.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Collections;
import java.util.Set;

/**
 * 网关配置
 *
 * @author 晨丰科技
 */
@Configuration
@ConfigurationProperties(prefix = "chenfeng.gateway")
@Data
public class CfGatewayProperties {

    /**
     * 是否开启网关访问日志
     */
    private boolean accessLogEnable = true;

    /**
     * 需要忽略打印requestBody和responseBody的请求地址列表
     */
    private Set<String> accessLogIgnoreUrls = Collections.emptySet();

    /**
     * 需要忽略token的请求地址列表
     */
    private Set<String> ignoreTokenUrls = Collections.emptySet();
}
