File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed
service/src/main/java/com/business/manager/service/config Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 1- "# spring-boot-skeleton"
1+ #spring-boot-skeleton
2+
3+ ##Functionalities implemented in this -
4+ 1 . A Java multi module project with Maven
5+ 2 . A fully functional spring boot rest api project.
6+ 3 . Fully functional repository module talking to MySQL database.
7+ 4 . Swagger UI integrated
8+ 5 . Fully functional security module with database tables.
9+ 6 . Fully functional Exception handling with error table.
10+
11+
12+ ##Steps to Install -
13+ 1 . Download project from git
14+ 2 . Replace your google/facebook/github oAuth account details in application.yml
15+ 3 . Replace MySQL database URL
16+ 4 . Launch ServiceApplication.java
17+
18+ ### To get bearer token from google account, use the following URL -
19+ http://localhost:8090/oauth2/authorize/google?redirect_uri=http://localhost:3000/login/redirect
Original file line number Diff line number Diff line change 1+ package com .business .manager .service .config ;
2+
3+ import org .springframework .context .annotation .Bean ;
4+ import org .springframework .context .annotation .Configuration ;
5+ import springfox .documentation .builders .PathSelectors ;
6+ import springfox .documentation .builders .RequestHandlerSelectors ;
7+ import springfox .documentation .spi .DocumentationType ;
8+ import springfox .documentation .spring .web .plugins .Docket ;
9+ import springfox .documentation .swagger2 .annotations .EnableSwagger2 ;
10+
11+ @ Configuration
12+ @ EnableSwagger2
13+ public class AppConfig {
14+
15+ @ Bean
16+ public Docket api () {
17+ return new Docket (DocumentationType .SWAGGER_2 )
18+ .select ()
19+ .apis (RequestHandlerSelectors .any ())
20+ .paths (PathSelectors .any ())
21+ .build ();
22+ }
23+
24+ }
You can’t perform that action at this time.
0 commit comments