Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.ufc.mandacaru5.config.security;
- import org.springframework.context.annotation.Bean;
- import org.springframework.security.config.annotation.web.builders.HttpSecurity;
- import org.springframework.security.web.SecurityFilterChain;
- import org.springframework.stereotype.Component;
- @Component
- public class WebSecurityConfig {
- @Bean
- public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
- http.httpBasic().and().authorizeHttpRequests().anyRequest().authenticated().and().csrf().disable();
- return http.build();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement