File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed
test/java/com/didispace/chapter54 Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 9696- [ Spring Boot 2.x基础教程:进程内缓存的使用与Cache注解详解] ( http://blog.didispace.com/spring-boot-learning-21-5-1/ )
9797- [ Spring Boot 2.x基础教程:EhCache缓存的使用] ( http://blog.didispace.com/spring-boot-learning-21-5-2/ )
9898- [ Spring Boot 2.x基础教程:使用EhCache缓存集群] ( http://blog.didispace.com/spring-boot-learning-21-5-3/ )
99+ - [ Spring Boot 2.x基础教程:使用集中式缓存Redis] ( http://blog.didispace.com/spring-boot-learning-21-5-4/ ) )
99100
100101### Web开发
101102
Original file line number Diff line number Diff line change 9191- [ Spring Boot 2.x基础教程:进程内缓存的使用与Cache注解详解] ( http://blog.didispace.com/spring-boot-learning-21-5-1/ )
9292- [ Spring Boot 2.x基础教程:EhCache缓存的使用] ( http://blog.didispace.com/spring-boot-learning-21-5-2/ )
9393- [ Spring Boot 2.x基础教程:使用EhCache缓存集群] ( http://blog.didispace.com/spring-boot-learning-21-5-3/ )
94+ - [ Spring Boot 2.x基础教程:使用集中式缓存Redis] ( http://blog.didispace.com/spring-boot-learning-21-5-4/ ) )
9495
9596### Web开发
9697
Original file line number Diff line number Diff line change 3434 <artifactId >spring-boot-starter-data-redis</artifactId >
3535 </dependency >
3636
37+ <dependency >
38+ <groupId >org.apache.commons</groupId >
39+ <artifactId >commons-pool2</artifactId >
40+ </dependency >
41+
3742 <dependency >
3843 <groupId >org.springframework.boot</groupId >
3944 <artifactId >spring-boot-starter-actuator</artifactId >
Original file line number Diff line number Diff line change 11spring.datasource.url =jdbc:mysql://localhost:3306/test
22spring.datasource.username =root
3- spring.datasource.password =
3+ spring.datasource.password =12345678
44spring.datasource.driver-class-name =com.mysql.cj.jdbc.Driver
55
6+ spring.jpa.database-platform =org.hibernate.dialect.MySQL5InnoDBDialect
67spring.jpa.show-sql =true
78spring.jpa.hibernate.ddl-auto =create-drop
89
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ public class Chapter54ApplicationTests {
2121
2222 @ Test
2323 public void test () throws Exception {
24+ System .out .println ("CacheManager type : " + cacheManager .getClass ());
25+
2426 // 创建1条记录
2527 userRepository .save (new User ("AAA" , 10 ));
2628
You can’t perform that action at this time.
0 commit comments