Skip to content

Commit

Permalink
[HOTFIX] swagger 설정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
EunbeenDev committed Sep 27, 2024
1 parent b313e69 commit 4b618df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ dependencies {
implementation 'javax.xml.bind:jaxb-api:2.3.1'
implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.1'

implementation 'org.springdoc:springdoc-openapi-ui:1.6.14'


}

tasks.named('test') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.authorizeHttpRequests(authorizeRequests -> authorizeRequests
// Swagger 경로 허용
.requestMatchers(URL_TO_PERMIT).permitAll()
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**").permitAll() // Swagger 경로 추가
.requestMatchers("/swagger/**", "/swagger-ui/**", "/v3/api-docs/**").permitAll() // Swagger 경로 추가
.anyRequest().authenticated()
)
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
Expand Down

0 comments on commit 4b618df

Please sign in to comment.