Embed code in doc.

This commit is contained in:
Olga MaciaszekSharma
2021-03-12 16:00:51 +01:00
parent 61aee7cb21
commit 7cf7051083
2 changed files with 60 additions and 6 deletions

View File

@@ -112,7 +112,6 @@ public class CircuitBreakerTests {
assertThat(testClientWithFactory.getException()).isEqualTo("Fixed response");
}
// tag::client_with_fallback[]
@FeignClient(name = "test", url = "http://localhost:${server.port}/", fallback = Fallback.class)
protected interface TestClient {
@@ -138,9 +137,7 @@ public class CircuitBreakerTests {
}
}
// end::client_with_fallback[]
// tag::client_with_fallback_factory[]
@FeignClient(name = "testClientWithFactory", url = "http://localhost:${server.port}/",
fallbackFactory = TestFallbackFactory.class)
protected interface TestClientWithFactory {
@@ -176,7 +173,6 @@ public class CircuitBreakerTests {
}
}
// end::client_with_fallback_factory[]
@Configuration(proxyBeanMethods = false)
@EnableAutoConfiguration