mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
配置redis repository
This commit is contained in:
@@ -6,6 +6,7 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.redis.connection.RedisConnectionFactory;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import org.springframework.data.redis.repository.configuration.EnableRedisRepositories;
|
||||
|
||||
@Configuration
|
||||
@Slf4j
|
||||
|
||||
0
src/main/resources/application-dev.yaml
Normal file
0
src/main/resources/application-dev.yaml
Normal file
@@ -5,8 +5,9 @@ server:
|
||||
port: 7456
|
||||
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
devtools:
|
||||
restart:
|
||||
enabled: false
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
@@ -36,6 +37,8 @@ spring:
|
||||
thread-name-prefix: schedule-
|
||||
data:
|
||||
redis:
|
||||
repositories:
|
||||
enabled: false
|
||||
host: localhost
|
||||
port: 6379
|
||||
password: 'abc@123'
|
||||
|
||||
Reference in New Issue
Block a user