可以对资源进行增删改
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.quinn.config;
|
||||
|
||||
import com.quinn.common.SourceType;
|
||||
import com.quinn.service.impl.UserServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@@ -27,6 +28,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
http.authorizeRequests()
|
||||
.antMatchers("/","/index").permitAll()
|
||||
.antMatchers("/register","/login","/toLogin").permitAll()
|
||||
.antMatchers("/tracy/mcgrady/lmq/love/wn").permitAll()
|
||||
.antMatchers("/*").authenticated();
|
||||
|
||||
// 登录配置
|
||||
|
||||
Reference in New Issue
Block a user