Skip to content

Commit 4dc688d

Browse files
authored
Create HowToUseSwaggerUI
1 parent 1edfa18 commit 4dc688d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

HowToUseSwaggerUI

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
1. Search for dependency Spring FOx Swagger Ui 2.6.1 and springFoxSwagger2 . add this 2 to pom file.
2+
2. Create Configuration package : add swaggerConfig class in it. add aanotation above class @Configuration @EnableSwagger2 @ComponentScan
3+
@PropertySource("classpath:swagger.properties")
4+
3. Add swagger.properties file under resources folder.
5+
4. Create static final variable where you will specify some value.
6+
5.Create ApiInfo method which returns apiBuilder.
7+
6.Create Docket which returns
8+
9+
watch video
10+
https://www.youtube.com/watch?v=h_jNGn6v4sU

0 commit comments

Comments
 (0)