带有 netty 服务器和 swagger-ui 的反应式 springboot

问题描述 投票:0回答:1

我有一个在 netty 服务器上运行的反应式 spring-boot 应用程序,其中 springboot 版本为 3.2.2 和 Java 17。当我添加依赖项时

<dependency>
   <groupId>org.springdoc</groupId>
   <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
   <version>2.3.0</version>
</dependency>

/swagger-ui/index.html 或 /swagger-ui.html 路由不返回任何内容。

我尝试将其向下打开以打开 Swagger 2,但没有成功。

spring-boot swagger spring-webflux netty
1个回答
0
投票

在高处,感觉太愚蠢了,我没有注意到有一个单独的通量库

正如 Alex 指出的,解决这个问题的方法是改变依赖关系。

<dependency>
  <groupId>org.springdoc</groupId>
  <artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
  <version>LATEST_RELEASE_VERION</version>
</dependency>
© www.soinside.com 2019 - 2024. All rights reserved.