File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/src/test/java/docs/security Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2016 the original author or authors.
2
+ * Copyright 2014-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
21
21
import org .springframework .context .annotation .Configuration ;
22
22
import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
23
23
import org .springframework .security .config .annotation .web .configuration .WebSecurityConfigurerAdapter ;
24
- import org .springframework .session .ExpiringSession ;
25
24
import org .springframework .session .FindByIndexNameSessionRepository ;
26
25
import org .springframework .session .security .SpringSessionBackedSessionRegistry ;
27
26
33
32
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
34
33
35
34
@ Autowired
36
- FindByIndexNameSessionRepository < ExpiringSession > sessionRepository ;
35
+ private FindByIndexNameSessionRepository sessionRepository ;
37
36
38
37
@ Override
39
38
protected void configure (HttpSecurity http ) throws Exception {
@@ -45,7 +44,8 @@ protected void configure(HttpSecurity http) throws Exception {
45
44
}
46
45
47
46
@ Bean
48
- SpringSessionBackedSessionRegistry sessionRegistry () {
47
+ @ SuppressWarnings ("unchecked" )
48
+ public SpringSessionBackedSessionRegistry sessionRegistry () {
49
49
return new SpringSessionBackedSessionRegistry (this .sessionRepository );
50
50
}
51
51
}
You can’t perform that action at this time.
0 commit comments