1 @Configuration
2 @EnableWebSecurity
3 public class SecSecurityConfig extends WebSecurityConfigurerAdapter {
4
5 @Override
6 protected void configure(final HttpSecurity http) throws Exception {
7 http
8 .authorizeRequests()
9 // ... endpoints
10 .formLogin()
11 .loginPage("/login.html")
12 .loginProcessingUrl("/login")
13 .defaultSuccessUrl("/homepage.html", true)
14 // ... other configuration
15 }
16 }