Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions cache-provider-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@
<maven.compiler.version>3.8.0</maven.compiler.version>
<maven.surefire.plugin.version>2.22.0</maven.surefire.plugin.version>
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
<spring-boot-starter-data-redis.version>3.2.3</spring-boot-starter-data-redis.version>
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
<git-commit-id-plugin.version>3.0.1</git-commit-id-plugin.version>
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
<jedis.version>2.9.0</jedis.version>
<maven-deploy-plugin.version>2.8.1</maven-deploy-plugin.version>
<nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
</properties>
Expand Down Expand Up @@ -87,12 +85,10 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>${spring-boot-starter-data-redis.version}</version>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis.version}</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public class RedisConfig {
@Value("${redis.cache.hostname}")
private String hostname;

@Value("${redis.cache.password}")
private String password;

@Value("${redis.cache.port}")
private int port;

Expand All @@ -21,6 +24,7 @@ JedisConnectionFactory jedisConnectionFactory() {
= new JedisConnectionFactory();
jedisConFactory.setHostName(hostname);
jedisConFactory.setPort(port);
jedisConFactory.setPassword(password);
return jedisConFactory;
}

Expand Down
Loading