Add documentation about early initialization errors. Fixes #221

This commit is contained in:
Ryan Baxter
2020-01-29 10:57:58 -05:00
parent 73a75fd8b2
commit a85294a835
2 changed files with 155 additions and 3 deletions

View File

@@ -487,3 +487,16 @@ public class DemoTemplate {
String demoEndpoint(@SpringQueryMap Params params);
}
----
=== Troubleshooting
==== Early Initialization Errors
Depending on how you are using your Feign clients you may see initialization errors when starting your application.
To work around this problem you can use an `ObjectProvider` when autowiring your client.
[source,java,indent=0]
----
@Autowired
ObjectProvider<TestFeginClient> testFeginClient;
----