|
|
@ -26,10 +26,9 @@ import java.util.Map; |
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
import org.apache.commons.logging.LogFactory; |
|
|
|
import org.apache.commons.logging.LogFactory; |
|
|
|
import org.junit.Before; |
|
|
|
import org.junit.Before; |
|
|
|
import org.springframework.boot.context.embedded.LocalServerPort; |
|
|
|
import org.springframework.boot.web.server.LocalServerPort; |
|
|
|
import org.springframework.cloud.gateway.EnableGateway; |
|
|
|
import org.springframework.cloud.gateway.EnableGateway; |
|
|
|
import org.springframework.cloud.gateway.filter.GlobalFilter; |
|
|
|
import org.springframework.cloud.gateway.filter.GlobalFilter; |
|
|
|
import org.springframework.cloud.gateway.filter.route.RouteFilter; |
|
|
|
|
|
|
|
import org.springframework.cloud.gateway.model.Route; |
|
|
|
import org.springframework.cloud.gateway.model.Route; |
|
|
|
import org.springframework.cloud.netflix.ribbon.RibbonClient; |
|
|
|
import org.springframework.cloud.netflix.ribbon.RibbonClient; |
|
|
|
import org.springframework.cloud.netflix.ribbon.RibbonClients; |
|
|
|
import org.springframework.cloud.netflix.ribbon.RibbonClients; |
|
|
@ -37,14 +36,12 @@ import org.springframework.cloud.netflix.ribbon.StaticServerList; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.core.annotation.Order; |
|
|
|
import org.springframework.core.annotation.Order; |
|
|
|
import org.springframework.http.server.reactive.ServerHttpRequest; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.reactive.function.client.WebClient; |
|
|
|
import org.springframework.web.reactive.function.client.WebClient; |
|
|
|
import org.springframework.web.server.ServerWebExchange; |
|
|
|
import org.springframework.web.server.ServerWebExchange; |
|
|
|
import org.springframework.web.server.WebFilter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.netflix.loadbalancer.Server; |
|
|
|
import com.netflix.loadbalancer.Server; |
|
|
|
import com.netflix.loadbalancer.ServerList; |
|
|
|
import com.netflix.loadbalancer.ServerList; |
|
|
|