1. 增加 Redis Starter

2. 在 system-service-app 引入 Redis Starter
This commit is contained in:
YunaiV
2020-12-05 19:49:59 +08:00
parent 49250ebf45
commit 03fde3699b
7 changed files with 120 additions and 2 deletions

View File

@@ -56,6 +56,11 @@
<artifactId>mall-spring-boot-starter-mybatis</artifactId>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>mall-spring-boot-starter-redis</artifactId>
</dependency>
<!-- 监控相关 -->
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@@ -1,10 +1,11 @@
spring:
# 数据源配置项
# MySQL 配置项
datasource:
url: jdbc:mysql://400-infra.server.iocoder.cn:3306/mall_system?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 3WLiVUBEwTbvAfsh
# Spring Cloud 配置项
cloud:
nacos:

View File

@@ -1,10 +1,17 @@
spring:
# 数据源配置项
# MySQL 配置项
datasource:
url: jdbc:mysql://400-infra.server.iocoder.cn:3306/mall_system?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 3WLiVUBEwTbvAfsh
# Redis 配置
redis:
host: 127.0.0.1
port: 6379
database: 0
# Spring Cloud 配置项
cloud:
nacos: