fix(test): 修改内嵌redis的启动端口
This commit is contained in:
@@ -79,8 +79,8 @@ spring.mail.properties.mail.smtp.socketFactory.fallback=false
|
|||||||
spring.redis.database=1
|
spring.redis.database=1
|
||||||
# Redis服务器地址
|
# Redis服务器地址
|
||||||
spring.redis.host=127.0.0.1
|
spring.redis.host=127.0.0.1
|
||||||
# Redis服务器连接端口
|
# Redis服务器连接端口 解决端口冲突 防止使用本地的redis
|
||||||
spring.redis.port=6379
|
spring.redis.port=6380
|
||||||
# Redis服务器连接密码(默认为空)
|
# Redis服务器连接密码(默认为空)
|
||||||
spring.redis.password=
|
spring.redis.password=
|
||||||
# 连接池最大连接数(使用负值表示没有限制)
|
# 连接池最大连接数(使用负值表示没有限制)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class RedisServerMock {
|
|||||||
*/
|
*/
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void startRedis() throws IOException {
|
public void startRedis() throws IOException {
|
||||||
redisServer = new RedisServer(6379);
|
redisServer = new RedisServer(6380);
|
||||||
redisServer.start();
|
redisServer.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user