정적 파일 서비스 경로(/files/*) 추가

master
mjkhan21 1 year ago
parent af3f822702
commit 0de0c01ff4

@ -34,7 +34,7 @@ public class SecurityConfig {
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests(conf ->
conf.antMatchers("/resources/**", "/login.do", "/logout.do", "/error/*.do").permitAll()
conf.antMatchers("/resources/**", "/files/**", "/login.do", "/logout.do", "/error/*.do").permitAll()
.antMatchers("/**/*.do").access(authorizationManager())
.anyRequest().authenticated()
)

Loading…
Cancel
Save