File tree Expand file tree Collapse file tree
src/main/java/com/p2plending/userservice Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383 <version >0.11.5</version >
8484 <scope >runtime</scope >
8585 </dependency >
86+ <dependency >
87+ <groupId >org.springdoc</groupId >
88+ <artifactId >springdoc-openapi-starter-webmvc-ui</artifactId >
89+ <version >2.3.0</version >
90+ </dependency >
8691
8792 </dependencies >
8893
Original file line number Diff line number Diff line change 1+ import io .swagger .v3 .oas .models .info .Info ;
2+ import io .swagger .v3 .oas .models .OpenAPI ;
3+ import org .springframework .context .annotation .Bean ;
4+ import org .springframework .context .annotation .Configuration ;
5+
6+ @ Configuration
7+ public class OpenApiConfig {
8+ @ Bean
9+ public OpenAPI customOpenAPI () {
10+ return new OpenAPI ()
11+ .info (new Info ()
12+ .title ("Loan Service API" )
13+ .version ("1.0" )
14+ .description ("Documentation for the Loan Service API" ));
15+ }
16+ }
Original file line number Diff line number Diff line change 8484 <version >0.11.5</version >
8585 <scope >runtime</scope >
8686 </dependency >
87+ <dependency >
88+ <groupId >org.springdoc</groupId >
89+ <artifactId >springdoc-openapi-starter-webmvc-ui</artifactId >
90+ <version >2.3.0</version >
91+ </dependency >
8792 </dependencies >
8893
8994 <build >
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public class UserServiceApplication {
88
99 public static void main (String [] args ) {
1010 SpringApplication .run (UserServiceApplication .class , args );
11- System .out .println ("*********************************** User Service Applicatrion is running fine ***************************************" );
11+ System .out .println ("\n *********************************** User Service Applicatrion is running fine ***************************************\n " );
1212 }
1313
1414}
You can’t perform that action at this time.
0 commit comments