Skip to content

Commit 9b5b215

Browse files
committed
Swagger ui added using open api dependency
1 parent 58d43b2 commit 9b5b215

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
<scope>runtime</scope>
3737
<optional>true</optional>
3838
</dependency>
39-
39+
<dependency>
40+
<groupId>org.springdoc</groupId>
41+
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
42+
<version>2.2.0</version>
43+
</dependency>
4044
<dependency>
4145
<groupId>org.projectlombok</groupId>
4246
<artifactId>lombok</artifactId>

src/main/resources/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ server.servlet.contextPath=/api
33

44

55

6+
springfox.documentation.swagger-ui.enabled=true
7+
springdoc.api-docs.path=/api-docs
8+
springdoc.swagger-ui.path=/swagger-ui-custom.html
9+
springdoc.swagger-ui.operationsSorter=method

0 commit comments

Comments
 (0)