Closed
Description
See spring-projects/spring-boot#21379 for more background.
It would be helpful if FeignClientsRegistrar
could add a FactoryBean.OBJECT_TYPE_ATTRIBUTE
attribute to the registered bean definition. The value of the attribute should be the type of bean that the FeignClientFactoryBean
will ultimately create.
With such an attribute in place, it will be possible for Spring Boot's @MockBean
support to tell the type without needing to instantiate the factory bean.