package com.tofly.feesapi.security.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Data
@RefreshScope
@Configuration
@ConditionalOnExpression("!'${tofly-filter}'.isEmpty()")
@ConfigurationProperties(prefix = "tofly-filter")
@Component
public class FilterPassUrlConfig {
    /**
     * 开发权限的url，不会被拦截
     */
    private List<String> urls = new ArrayList();
}
