-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Milestone
Comments
This was referenced Jan 25, 2019
HugoMario
added a commit
that referenced
this issue
Mar 6, 2019
…on_for_openfeign_with_spring-boot_2 Enable code generation for OpenFeign with Spring-Boot 2 (#9118)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: