|
|
|
@ -36,6 +36,7 @@ import org.springframework.cloud.netflix.ribbon.StaticServerList;
@@ -36,6 +36,7 @@ import org.springframework.cloud.netflix.ribbon.StaticServerList;
|
|
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
|
import org.springframework.core.annotation.Order; |
|
|
|
|
import org.springframework.http.MediaType; |
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
@ -138,6 +139,11 @@ public class BaseWebClientTests {
@@ -138,6 +139,11 @@ public class BaseWebClientTests {
|
|
|
|
|
return Mono.just(ret); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping(path = "/post", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) |
|
|
|
|
public Mono<Map<String, Object>> postUrlEncoded(ServerWebExchange exchange) throws IOException { |
|
|
|
|
return post(exchange, null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping("/post") |
|
|
|
|
public Mono<Map<String, Object>> post(ServerWebExchange exchange, |
|
|
|
|
@RequestBody(required = false) String body) throws IOException { |
|
|
|
|