Skip to content

Commit 5c5882a

Browse files
committed
Fixed Swagger bug and updated ReadMe File
1 parent 56b756e commit 5c5882a

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
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
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}

0 commit comments

Comments
 (0)