fix(test): 修改内嵌redis的启动端口

This commit is contained in:
禾几海
2020-08-14 21:30:40 +08:00
parent af9f243a83
commit 5a47803611
2 changed files with 3 additions and 3 deletions

View File

@@ -79,8 +79,8 @@ spring.mail.properties.mail.smtp.socketFactory.fallback=false
spring.redis.database=1
# Redis服务器地址
spring.redis.host=127.0.0.1
# Redis服务器连接端口
spring.redis.port=6379
# Redis服务器连接端口 解决端口冲突 防止使用本地的redis
spring.redis.port=6380
# Redis服务器连接密码默认为空
spring.redis.password=
# 连接池最大连接数(使用负值表示没有限制)

View File

@@ -23,7 +23,7 @@ public class RedisServerMock {
*/
@PostConstruct
public void startRedis() throws IOException {
redisServer = new RedisServer(6379);
redisServer = new RedisServer(6380);
redisServer.start();
}