摘要:
1、在SpringBoot的启动类上添加注解@EnableCaching,开启SpringCache缓存支持@SpringBootApplication// 开启SpringCache缓存支持@EnableCachingpublic class Gather... 阅读全文
摘要:
连接MySQL数据库时抛出警告:Tue Feb 26 17:38:27 CST 2019 WARN: Establishing SSL connection without server's identity verification is not reco... 阅读全文
摘要:
// 向redis里存入数据和设置缓存时间stringRedisTemplate.opsForValue().set("test", "100", 60 * 10, TimeUnit.SECONDS);// 根据key获取缓存中的valstringRedis... 阅读全文
摘要:
1、导入redis的启动器 org.springframework.boot spring-boot-starter-data-redis2、在yml配置文件中配置redis连接信息spring: redis: host: 192.168.206.1... 阅读全文
使用Spring Data JPA报错:javax.persistence.TransactionRequiredException: Executing an update/delete query
摘要:
Caused by: javax.persistence.TransactionRequiredException: Executing an update/delete query at org.hibernate.query.internal.Abstr... 阅读全文
摘要:
1、重启Docker[root@pinyoyougou-docker ~]# sudo systemctl start docker2、列出Docker中创建的容器[root@pinyoyougou-docker ~]# docker ps -a3、启动my... 阅读全文