Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 63132f0

Browse files
committed
redis initialize
1 parent 5fdee8c commit 63132f0

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

‎build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
2424
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
2525
implementation 'org.springframework.boot:spring-boot-starter-web'
26-
implementation 'org.springframework.boot:spring-boot-starter-redis'
26+
implementation 'org.springframework.boot:spring-boot-starter-redis:1.4.7.RELEASE'
2727
implementation 'com.google.code.gson:gson'
2828
compileOnly 'org.projectlombok:lombok'
2929
runtimeOnly 'com.h2database:h2'
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.redis.cluster;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class RedisCluterApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(RedisCluterApplication.class, args);
11+
}
12+
}

‎src/main/resources/application.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
port: 8080
2+
3+
spring:
4+
redis:
5+
cluster:
6+
nodes:
7+
- 15.164.98.87:6300
8+
- 15.164.98.87:6301
9+
- 15.164.98.87:6302
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.redis.cluster;
2+
3+
import org.junit.runner.RunWith;
4+
import org.springframework.boot.test.context.SpringBootTest;
5+
import org.springframework.test.context.junit4.SpringRunner;
6+
7+
@RunWith(SpringRunner.class)
8+
@SpringBootTest
9+
public class RedisCluterApplicationTest {
10+
11+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /