ny
23 小时以前 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package jnpf.handler;
 
import com.github.xiaoymin.knife4j.spring.gateway.Knife4jGatewayProperties;
import com.github.xiaoymin.knife4j.spring.gateway.discover.spi.GatewayServiceExcludeService;
import com.google.common.collect.ImmutableSet;
import org.springframework.core.env.Environment;
 
import java.util.List;
import java.util.Set;
 
public class MyGatewayServiceExcludeService implements GatewayServiceExcludeService {
 
    private final Set<String> excludeServices = ImmutableSet.of("^[^j][^n][^p][^f].*", "jnpf-datareport");
    @Override
    public Set<String> exclude(Environment environment, Knife4jGatewayProperties properties, List<String> services) {
        return excludeServices;
    }
}