package sample;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {

	@Override
	protected void configure(HttpSecurity http) throws Exception {
		// @formatter:off
		http
			.requestMatchers()
				.antMatchers("/", "/login")
				.and()
			.formLogin()
				.and()
			.authorizeRequests()
				.anyRequest().authenticated();
		// @formatter:on
	}

}

@@ -10,16 +10,91 @@
 ample;%0A%0A
+import org.springframework.boot.autoconfigure.security.SecurityProperties;%0A
 import o
@@ -177,60 +177,29 @@
 ork.
-security.config.annotation.web.builders.HttpSecurity
+core.annotation.Order
 ;%0Aim
@@ -314,16 +314,65 @@
 uration%0A
+@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)%0A
 public c
@@ -434,283 +434,6 @@
 r %7B%0A
-%0A%09@Override%0A%09protected void configure(HttpSecurity http) throws Exception %7B%0A%09%09// @formatter:off%0A%09%09http%0A%09%09%09.requestMatchers()%0A%09%09%09%09.antMatchers(%22/%22, %22/login%22)%0A%09%09%09%09.and()%0A%09%09%09.formLogin()%0A%09%09%09%09.and()%0A%09%09%09.authorizeRequests()%0A%09%09%09%09.anyRequest().authenticated();%0A%09%09// @formatter:on%0A%09%7D%0A%0A
 %7D%0A

Simplify session-jdbc security config