|
|
@ -34,7 +34,7 @@ public class SecurityConfig {
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
|
|
|
|
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
|
|
|
|
http.authorizeHttpRequests(conf ->
|
|
|
|
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())
|
|
|
|
.antMatchers("/**/*.do").access(authorizationManager())
|
|
|
|
.anyRequest().authenticated()
|
|
|
|
.anyRequest().authenticated()
|
|
|
|
)
|
|
|
|
)
|
|
|
|