关闭consumer spring security身份验证页面
This commit is contained in:
parent
9616c27efa
commit
cd374f2d98
@ -0,0 +1,18 @@
|
||||
package cn.lili.sucurity;
|
||||
|
||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author paulG
|
||||
* @since 2022/2/18
|
||||
**/
|
||||
@Component
|
||||
public class ConsumerSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
|
||||
@Override
|
||||
protected void configure(HttpSecurity http) throws Exception {
|
||||
http.formLogin().disable();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user