Spring Security1 폼로그인 작성 security config에서 SecurityFilterChain을 작성한다. @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .csrf().disable() // enable h2-console .headers() .frameOptions() .disable() .and() .authorizeRequests() .antMatchers("/").permitAll() .antMatchers("/login").permitAll() .antMatchers("/resume").permitAll() .antMatchers("/items/**").hasRole(Role.USER.name()) .anyReq.. 2024. 1. 22. 이전 1 다음