Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JAVA] Enable code generation for OpenFeign with Spring-Boot 2 #9118

Closed
unmerge opened this issue Jan 25, 2019 · 0 comments
Closed

[JAVA] Enable code generation for OpenFeign with Spring-Boot 2 #9118

unmerge opened this issue Jan 25, 2019 · 0 comments
Assignees
Milestone

Comments

@unmerge
Copy link

unmerge commented Jan 25, 2019

Description

When using generation library spring-cloud, code will be generated with import:

import org.springframework.cloud.netflix.feign.FeignClient;

But when one wants to use open feign with spring boot 2, we need the following:

import org.springframework.cloud.openfeign.FeignClient;

Solution: Setup property to switch between both import statements (JavaSpring library "spring-cloud)" -> "apiClient.mustache".

Swagger-codegen version

2.4.1

Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants