Açıklaması şöyle
The RedisCacheManager is automatically configured when we configure Redis. The default configuration is set by using property spring.cache.redis.*.
Maven
Şu satırı dahil ederiz
dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency>
Gradle
Şu satırı dahil ederiz
dependencies {
...
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
...
}application.properties Ayarları
SpringCache Redis application.properties Ayarları yazısına taşıdım
Hiç yorum yok:
Yorum Gönder