|
@ -22,10 +22,9 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
|
|
|
protected void configure(HttpSecurity http) throws Exception {
|
|
|
http.authorizeRequests()
|
|
|
.antMatchers("/", "/").permitAll()
|
|
|
.anyRequest().authenticated()
|
|
|
.and()
|
|
|
.formLogin().defaultSuccessUrl("/swagger-ui.html") //登录成功之后的跳转
|
|
|
.formLogin().defaultSuccessUrl("/swagger-ui.html").failureUrl("/login") //登录成功之后的跳转
|
|
|
.permitAll()
|
|
|
.and()
|
|
|
.logout()
|