如果项目上使用了Swagger做RESTful的文档,那么也可以通过Swagger提供的代码生成器生成客户端代码,同时支持Feign客户端。

但是经过测试,生成Feign代码和REST客户端有些臃肿。

官方网站:https://github.com/swagger-api/swagger-codegen

 

参考:

https://stackoverflow.com/questions/46019180/how-to-generate-spring-cloud-feign-client-using-swagger-codegen-maven-plugin

https://stackoverflow.com/questions/45592746/how-to-generate-uri-parameter-for-dynamic-feign-basepath-using-swagger-codegen

http://www.baeldung.com/spring-boot-rest-client-swagger-codegen

 

相关文章:

  • 2022-03-03
  • 2021-11-18
  • 2021-12-14
  • 2022-12-23
  • 2021-05-21
  • 2021-11-02
  • 2021-08-24
猜你喜欢
  • 2021-11-11
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2022-01-26
相关资源
相似解决方案