2
2
3
3
import org .neo4j .ogm .session .SessionFactory ;
4
4
import org .springframework .boot .autoconfigure .data .neo4j .Neo4jProperties ;
5
- import org .springframework .boot .autoconfigure .jdbc .DataSourceProperties ;
5
+ // import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
6
6
import org .springframework .boot .autoconfigure .orm .jpa .JpaProperties ;
7
7
import org .springframework .boot .context .properties .EnableConfigurationProperties ;
8
8
import org .springframework .context .annotation .Bean ;
19
19
20
20
/**
21
21
* Created by tw on 25.06.18.
22
+ *
23
+ * TODO: #38
22
24
*/
23
25
@ Configuration
24
26
@ EnableNeo4jRepositories (
31
33
@ EnableTransactionManagement
32
34
@ EnableConfigurationProperties ({
33
35
JpaProperties .class ,
34
- Neo4jProperties .class ,
35
- DataSourceProperties .class
36
+ Neo4jProperties .class // ,
37
+ // DataSourceProperties.class
36
38
})
37
39
public class StorageConfig {
38
40
@@ -41,24 +43,28 @@ public Neo4jTransactionManager neo4jTransactionManager(SessionFactory sessionFac
41
43
return new Neo4jTransactionManager (sessionFactory );
42
44
}
43
45
46
+ // TODO: #38
44
47
@ Bean
45
48
public JedisConnectionFactory jedisConnFactory () {
46
49
JedisConnectionFactory fac = new JedisConnectionFactory (new RedisStandaloneConfiguration ());
47
50
return fac ;
48
51
}
49
52
53
+ // TODO: #38
50
54
@ Bean
51
55
public RedisTemplate redisTemplate (){
52
56
RedisTemplate redisTemplate = new RedisTemplate ();
53
57
//redisTemplate.setEnableTransactionSupport(true);
54
58
return redisTemplate ;
55
59
}
56
60
61
+ // TODO: #38
57
62
@ Bean
58
63
public RedisConnectionFactory redisConnectionFactory (JedisConnectionFactory jedisConnFactory ) {
59
64
return (RedisConnectionFactory ) jedisConnFactory ;
60
65
}
61
66
67
+ // TODO: #38
62
68
@ Bean
63
69
public RedisOperationsSessionRepository sessionRepository (RedisTemplate redisTemplate ){
64
70
return new RedisOperationsSessionRepository (redisTemplate );
0 commit comments