Apply spring security only to one page
问题 I have a typical security configuration: @Override protected void configure(HttpSecurity http) throws Exception { http .authorizeRequests() .antMatchers("/", "/index").permitAll() .anyRequest().authenticated() .and() .formLogin() .loginPage("/login") .permitAll() .and() .logout() .permitAll(); //http.authorizeRequests().antMatchers("/resources/**").permitAll().anyRequest().permitAll(); } Now spring is asking for a login for everything except of the login page... But how could I make it the