Skip to content

Commit

Permalink
[P4ADEV-1811] fixed WebSecurityConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mscarsel committed Jan 17, 2025
1 parent 8d842d9 commit a1f65d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration;

@SpringBootApplication(exclude = UserDetailsServiceAutoConfiguration.class)
@SpringBootApplication(exclude = {UserDetailsServiceAutoConfiguration.class, ErrorMvcAutoConfiguration.class})
public class FileShareApplication {

public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
"/actuator/**"
).permitAll()

// WebMVC
.requestMatchers(
"/error"
).permitAll()

.anyRequest().authenticated()
)
.sessionManagement(session -> session
Expand Down

0 comments on commit a1f65d4

Please sign in to comment.