我有一个在 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,但没有成功。
在高处,感觉太愚蠢了,我没有注意到有一个单独的通量库
正如 Alex 指出的,解决这个问题的方法是改变依赖关系。
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
<version>LATEST_RELEASE_VERION</version>
</dependency>