is it possible to generate my XYZClient
and invoker ApiClient
as Spring beans with an @Component
Annotation ?
I am using the open-api-generator
gradle plugin.
There is an open issue about this in GitHub repo. Still, AFIAK it is possible, there is an example in the discussion thread like this:
<configOptions>
<additionalModelTypeAnnotations>@lombok.Builder @lombok.NoArgsConstructor @lombok.AllArgsConstructor</additionalModelTypeAnnotations>
</configOptions>
It uses the lombok annotations, but it does not matter. You can specify a FQCN of spring @Component
annotation or @Service
annotation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With