这种办法有没有什么方法可以判断
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/").permitAll()
.antMatchers("/login").permitAll()
//.antMatchers("/register").permitAll()
.anyRequest().authenticated(); //任何请求,登录后可以访问
//开启自动配置的登录功能
http.formLogin()
.usernameParameter("username")
.passwordParameter("password")
.loginPage("/login")
.defaultSuccessUrl("/index", true);
status如果是1代表管理员,0代表普通