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;
|
}
|
}
|