Showing results for 
Search instead for 
Did you mean: 

Multiple generated clients in same app

Occasional Visitor

Multiple generated clients in same app

I've inherited some code that includes a generated client using spring rest template.  It's failing to start as there are multiple rest template beans on our path.  In our handcrafted clients we qualify the beans such that they find the appropriate rest template, is there a way to do this with swagger-codegen?


I believe this is related to how the ApiClient is autowired through the constructor:


    public ApiClient(RestTemplate restTemplate) {
        this.restTemplate = restTemplate;

This will attempt to find a RestTemplate bean to wire in here, since we have many I'm guessing this needs to be qualified somehow?

New Here?
Join us and watch the welcome video:
Top Kudoed Authors