Answers for "how to make spring security login form redirect to another page"

-1

spring security after login redirect

@Configuration
	@EnableWebSecurity
	public class SecSecurityConfig extends WebSecurityConfigurerAdapter {
	 
	    @Override
	    protected void configure(final HttpSecurity http) throws Exception {
	        http
	            .authorizeRequests()
	            // ... endpoints
	            .formLogin()
	                .loginPage("/login.html")
	                .loginProcessingUrl("/login")
	                .defaultSuccessUrl("/homepage.html", true)
	            // ... other configuration       
	    }
	}
Posted by: Guest on October-29-2020

Code answers related to "how to make spring security login form redirect to another page"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language