Answer the question
In order to leave comments, you need to log in
How to make an authorization page?
With the help of Spring Security, I made authorization: I registered it in application.properties:
security.user.name = user(now when you visit localhost, a pop-up window appears in the browser).
security.user.password = password
Answer the question
In order to leave comments, you need to log in
In the configuration, you need to enable form authorization:
@Configuration
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
//твои
//настройки
.formLogin();
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question