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