smallrye / smallrye-stork

SmallRye Stork is a service discovery and client side-load balancing framework.

Home Page:http://smallrye.io/smallrye-stork/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I generate the xxxConfiguration class

liuzhaozhao opened this issue · comments

I according to the document "http://smallrye.io/smallrye-stork/1.1.0/custom-service-discovery/" custom "Service Discovery", there is no automatic generating xxxConfiguration class, Additional configuration required?

My parent pom is not “stork-parent”,is that the reason?

Hi @liuzhaozhao !

To set up the configuration for your custom service discovery , you need to annotate your CustomServiceDiscoveryProvider with @ServiceDiscoveryType and @ServiceDiscoveryAttribute. This will generate the needed classes CustomServiceDiscoveryProviderConfiguration. For e.g. look at the Stork Consul Service Discovery provider
I will transfer this one to a discussion because it's not an issue.

I hope that helps