Is your feature request related to a problem? Please describe.
Checking all Java clients, the only one that defines the ApiClient and XXXApi with the @Component annotation is RestTemplate.
With this change, now for RestTemplate (as it is done for the rest of the Java clients) we will have to define one bean as ApliClient and another one as XXXClient.
Describe the solution you'd like
Remove @Component from ApiClient.mustache and api.mustache
-
ApiClient.mustache
|
@Component("{{invokerPackage}}.ApiClient") |
-
api.mustache
|
@Component("{{package}}.{{classname}}") |
Is your feature request related to a problem? Please describe.
Checking all Java clients, the only one that defines the ApiClient and XXXApi with the
@Componentannotation is RestTemplate.With this change, now for RestTemplate (as it is done for the rest of the Java clients) we will have to define one bean as ApliClient and another one as XXXClient.
Describe the solution you'd like
Remove
@Componentfrom ApiClient.mustache and api.mustacheApiClient.mustache
openapi-generator/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache
Line 84 in a4b5b85
api.mustache
openapi-generator/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache
Line 30 in a4b5b85