qiita.com[B!]新着記事・評価 - はてなブックマーク (original) (raw)

@Configuration @EnableWebMvcSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private DataSource dataSource; // ポイント1 @Override public void configure(WebSecurity web) throws Exception { web.ignoring().antMatchers("/css/**", "/image/**", "/js/**"); } // ポイント2 @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().antMat