Answer the question
In order to leave comments, you need to log in
Is it possible to programmatically find out the value of the loginPage that was set when configuring Spring Security?
Hello.
I'm studying Java, I made a project in which I configure HttpSecurity and, in particular, set my loginPage.
@Configuration
public class BasicConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
...
.and()
.formLogin().loginPage("/sign_in").permitAll()
.and()
.logout().permitAll();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question