Skip to content

Commit

Permalink
add openapi support
Browse files Browse the repository at this point in the history
  • Loading branch information
guanyang committed Oct 18, 2023
1 parent 721bd03 commit 293e2ef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions webflux-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
<version>2.2.0</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Scheduler;
import reactor.core.scheduler.Schedulers;

import java.time.Duration;

Expand Down
6 changes: 6 additions & 0 deletions webflux-sample/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ spring:
thread-cap: 200
#调度器队列大小
queued-task-cap: 20000

springdoc:
swagger-ui:
enabled: true
api-docs:
enabled: true

0 comments on commit 293e2ef

Please sign in to comment.