让用户ID抓包不泄露更安全
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
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;
|
||||
@@ -29,6 +28,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
.antMatchers("/","/index").permitAll()
|
||||
.antMatchers("/register","/login","/toLogin").permitAll()
|
||||
.antMatchers("/tracy/mcgrady/lmq/love/wn").permitAll()
|
||||
.antMatchers("/blog/**").authenticated()
|
||||
.antMatchers("/source/**").authenticated()
|
||||
.antMatchers("/user/**").authenticated()
|
||||
.antMatchers("/*").authenticated();
|
||||
|
||||
// 登录配置
|
||||
|
||||
Reference in New Issue
Block a user