File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/main/kotlin/com/back/koreaTravelGuide Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- package com.back.koreaTravelGuide.common.config
1+ package com.back.koreaTravelGuide.common.security
22
3- import com.back.koreaTravelGuide.common.security.CustomOAuth2LoginSuccessHandler
4- import com.back.koreaTravelGuide.common.security.CustomOAuth2UserService
5- import com.back.koreaTravelGuide.common.security.JwtAuthenticationFilter
63import org.springframework.context.annotation.Bean
74import org.springframework.context.annotation.Configuration
85import org.springframework.core.env.Environment
@@ -63,7 +60,10 @@ class SecurityConfig(
6360
6461 authorizeHttpRequests {
6562 authorize(" /h2-console/**" , permitAll)
66- authorize(" /swagger-ui/**" , " /v3/api-docs/**" , permitAll)
63+ authorize(" /swagger-ui.html" , permitAll)
64+ authorize(" /swagger-ui/**" , permitAll)
65+ authorize(" /api-docs/**" , permitAll)
66+ authorize(" /webjars/swagger-ui/**" , permitAll)
6767 authorize(" /api/auth/**" , permitAll)
6868 authorize(" /actuator/health" , permitAll)
6969 authorize(" /weather/test1" , permitAll)
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class User(
3737 @Enumerated(EnumType .STRING )
3838 @Column(nullable = false )
3939 var role : UserRole = UserRole .USER ,
40+ @Enumerated(EnumType .STRING )
4041 @Column
4142 var location : Region ? = null ,
4243 @Column(columnDefinition = " TEXT" )
You can’t perform that action at this time.
0 commit comments