TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Generating Feign Clients with Swagger Codegen and Gradle

1 点作者 javinpaul将近 7 年前

1 comment

vorg将近 7 年前
So the solution to:<p><pre><code> error: package org.springframework.cloud.security.oauth2.client.feign does not exist </code></pre> is to manually add the lines:<p><pre><code> task deleteNonClientRelatedClasses(dependsOn: &#x27;generateClient&#x27;) { doLast { delete &quot;${project.buildDir}&#x2F;src&#x2F;main&#x2F;java&#x2F;io&quot; } } </code></pre> to the Gradle build script? Sounds like Swagger is inserting itself into the complexity spiral dominated by Spring, Gradle, and Apache Groovy.<p>PS: This was already submitted to HN 12 hrs ago by the same user: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17332028" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17332028</a>