File tree 1 file changed +5
-4
lines changed
docs/src/test/java/docs/security 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2017 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.
30
30
*/
31
31
// tag::class[]
32
32
@ Configuration
33
- public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
33
+ public class SecurityConfiguration <S extends Session >
34
+ extends WebSecurityConfigurerAdapter {
34
35
35
36
@ Autowired
36
- private FindByIndexNameSessionRepository <Session > sessionRepository ;
37
+ private FindByIndexNameSessionRepository <S > sessionRepository ;
37
38
38
39
@ Override
39
40
protected void configure (HttpSecurity http ) throws Exception {
@@ -47,7 +48,7 @@ protected void configure(HttpSecurity http) throws Exception {
47
48
}
48
49
49
50
@ Bean
50
- SpringSessionBackedSessionRegistry sessionRegistry () {
51
+ public SpringSessionBackedSessionRegistry < S > sessionRegistry () {
51
52
return new SpringSessionBackedSessionRegistry <>(this .sessionRepository );
52
53
}
53
54
}
You can’t perform that action at this time.
0 commit comments