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 excludeServices = ImmutableSet.of("^[^j][^n][^p][^f].*", "jnpf-datareport"); @Override public Set exclude(Environment environment, Knife4jGatewayProperties properties, List services) { return excludeServices; } }