缺少在GraphQLDGS Springboot应用程序中导入

发布于 2025-02-11 07:30:20 字数 1166 浏览 1 评论 0原文

我已经在指南之后的弹簧启动项目上安装并设置GraphQldgs: htttps:// netflix 。

​testing/“ rel =” nofollow noreferrer”> https://netflix.github.io/dgs/query-execution-testing/ - 我无法导入其中一个值,如

com.netflix.graphql.dgs.autoconfig.dgsautoconfiguration

我无法找到dgsautoconfiguration。我唯一的事情是下面点表示的asterix(*):

import com.netflix.graphql.dgs.autoconfig。

<dependency>
  <groupId>com.netflix.graphql.dgs</groupId>
  <artifactId>graphql-dgs-spring-boot-starter</artifactId>
</dependency>

<dependency>
  <groupId>com.netflix.graphql.dgs</groupId>
  <artifactId>graphql-dgs-platform-dependencies</artifactId>
  <!-- The DGS BOM/platform dependency. This is the only place you set version of DGS -->
  <version>4.9.16</version>
  <type>pom</type>
  <scope>import</scope>
</dependency>

任何帮助都将受到赞赏。谢谢!

I have installed and setup graphqldgs on a spring boot project following the guide here: https://netflix.github.io/dgs/getting-started/

When i try to write a test case - following the guide here: https://netflix.github.io/dgs/query-execution-testing/ - I am unable to import one of the values, as shown below

import com.netflix.graphql.dgs.autoconfig.DgsAutoConfiguration

I cannot locate DgsAutoConfiguration. The only thing i have is an asterix (*) after dot notation below:

import com.netflix.graphql.dgs.autoconfig.

I have these graphqldgs pom dependencies below:

<dependency>
  <groupId>com.netflix.graphql.dgs</groupId>
  <artifactId>graphql-dgs-spring-boot-starter</artifactId>
</dependency>

<dependency>
  <groupId>com.netflix.graphql.dgs</groupId>
  <artifactId>graphql-dgs-platform-dependencies</artifactId>
  <!-- The DGS BOM/platform dependency. This is the only place you set version of DGS -->
  <version>4.9.16</version>
  <type>pom</type>
  <scope>import</scope>
</dependency>

Any help is appreciated. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撑一把青伞 2025-02-18 07:30:20

我在Intellij中遇到了这个问题。安装Kotlin插件[1]修复了它。

[1]

I had this issue in IntelliJ. Installing the Kotlin plugin [1] fixed it.

[1] https://plugins.jetbrains.com/plugin/6954-kotlin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文