spring-cloud-openfeign icon indicating copy to clipboard operation
spring-cloud-openfeign copied to clipboard

replace FeignClientsRegistrar implement

Open coldingcode opened this issue 7 years ago • 6 comments

hi I have a problem: I want to use spring-cloud-openfeign and customize feign client. but i cant make it now. because i cant replace FeignClientsRegistrar in @EnabledFeignClients with my FeignClientsRegistrar . so maybe you can provider a way to do it.

Best Regards Eightmonth

coldingcode avatar Mar 28 '19 03:03 coldingcode

That class isn't replaceable. Either create feign clients manually or create your own annotation instead of @EnabledFeignClients.

spencergibb avatar Mar 28 '19 03:03 spencergibb

yes, i think so , but its so hard to do this solution in company.

coldingcode avatar Mar 28 '19 03:03 coldingcode

So, lets back up and tell me why you want your own FeignClientsRegistrar?

spencergibb avatar Mar 28 '19 03:03 spencergibb

i want to customize feign client and use spring-cloud-openfeign

coldingcode avatar Mar 28 '19 04:03 coldingcode

We have all sorts of ways to customize feign clients, you'll have to be more specific.

spencergibb avatar Mar 28 '19 04:03 spencergibb

Enhance zipkin trace to method level feign request url just known the url which one is the service but dont know which method to be call. i wannna init method info to feign client when building feign client

coldingcode avatar Mar 28 '19 04:03 coldingcode