fix(security): 添加注释说明
This commit is contained in:
parent
200ad5b2d4
commit
c82f92d3b6
@ -61,6 +61,7 @@ public class SpringSecurityConfig {
|
||||
filter.setAuthenticationFailureHandler(customAuthenticationFailureHandler);
|
||||
filter.setFilterProcessesUrl("/api/rest/user/login");
|
||||
filter.setAuthenticationManager(authenticationManager());
|
||||
// 将登录后的请求信息保存到Session中,不然会报null
|
||||
filter.setSecurityContextRepository(new HttpSessionSecurityContextRepository());
|
||||
return filter;
|
||||
}
|
||||
|
@ -3,11 +3,14 @@ package com.zsc.edu.bill;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@SpringBootTest
|
||||
class BillApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user