Skip to content

Commit

Permalink
Merge pull request #61 from GDSC-KNU/develop
Browse files Browse the repository at this point in the history
Swagger-Ui 추가
  • Loading branch information
yooonwodyd authored Feb 21, 2024
2 parents 3fd0a5f + cb5cc55 commit f565204
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0")
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.mysql:mysql-connector-j'
Expand All @@ -49,3 +50,7 @@ tasks.named('bootBuildImage') {
tasks.named('test') {
useJUnitPlatform()
}

compileJava {
options.compilerArgs += ['-parameters']
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public SecurityFilterChain securityFilterChain(
authorizeHttpRequests ->
authorizeHttpRequests
.requestMatchers(PathRequest.toStaticResources().atCommonLocations()).permitAll()
.requestMatchers("/swagger-ui/**", "/v3/api-docs/", "/swagger-ui.html").permitAll()
.requestMatchers("/loginPage/formLogin").permitAll()
.requestMatchers("/loginPage/loginFail").permitAll()
.requestMatchers("/loginPage/login").permitAll()
Expand Down

0 comments on commit f565204

Please sign in to comment.