Answers for "spring security after login redirect"

-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 "spring security after login redirect"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language