From 1c578654cbcab9207b4e650177cc9e6b6597f88f Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Sat, 10 Nov 2018 23:24:10 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20spring-boot-demo-cache-redis=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-demo-cache-redis/.gitignore | 25 ++++++++++ spring-boot-demo-cache-redis/pom.xml | 50 +++++++++++++++++++ .../SpringBootDemoCacheRedisApplication.java | 12 +++++ .../src/main/resources/application.properties | 0 ...ingBootDemoCacheRedisApplicationTests.java | 16 ++++++ 5 files changed, 103 insertions(+) create mode 100644 spring-boot-demo-cache-redis/.gitignore create mode 100644 spring-boot-demo-cache-redis/pom.xml create mode 100644 spring-boot-demo-cache-redis/src/main/java/com/xkcoding/cache/redis/SpringBootDemoCacheRedisApplication.java create mode 100644 spring-boot-demo-cache-redis/src/main/resources/application.properties create mode 100644 spring-boot-demo-cache-redis/src/test/java/com/xkcoding/cache/redis/SpringBootDemoCacheRedisApplicationTests.java diff --git a/spring-boot-demo-cache-redis/.gitignore b/spring-boot-demo-cache-redis/.gitignore new file mode 100644 index 0000000..82eca33 --- /dev/null +++ b/spring-boot-demo-cache-redis/.gitignore @@ -0,0 +1,25 @@ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ \ No newline at end of file diff --git a/spring-boot-demo-cache-redis/pom.xml b/spring-boot-demo-cache-redis/pom.xml new file mode 100644 index 0000000..535551f --- /dev/null +++ b/spring-boot-demo-cache-redis/pom.xml @@ -0,0 +1,50 @@ + + + 4.0.0 + + com.xkcoding + spring-boot-demo-cache-redis + 1.0.0-SNAPSHOT + jar + + spring-boot-demo-cache-redis + Demo project for Spring Boot + + + org.springframework.boot + spring-boot-starter-parent + 2.1.0.RELEASE + + + + + UTF-8 + UTF-8 + 1.8 + + + + + org.springframework.boot + spring-boot-starter + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + diff --git a/spring-boot-demo-cache-redis/src/main/java/com/xkcoding/cache/redis/SpringBootDemoCacheRedisApplication.java b/spring-boot-demo-cache-redis/src/main/java/com/xkcoding/cache/redis/SpringBootDemoCacheRedisApplication.java new file mode 100644 index 0000000..ad52a4c --- /dev/null +++ b/spring-boot-demo-cache-redis/src/main/java/com/xkcoding/cache/redis/SpringBootDemoCacheRedisApplication.java @@ -0,0 +1,12 @@ +package com.xkcoding.cache.redis; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SpringBootDemoCacheRedisApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootDemoCacheRedisApplication.class, args); + } +} diff --git a/spring-boot-demo-cache-redis/src/main/resources/application.properties b/spring-boot-demo-cache-redis/src/main/resources/application.properties new file mode 100644 index 0000000..e69de29 diff --git a/spring-boot-demo-cache-redis/src/test/java/com/xkcoding/cache/redis/SpringBootDemoCacheRedisApplicationTests.java b/spring-boot-demo-cache-redis/src/test/java/com/xkcoding/cache/redis/SpringBootDemoCacheRedisApplicationTests.java new file mode 100644 index 0000000..b70f59a --- /dev/null +++ b/spring-boot-demo-cache-redis/src/test/java/com/xkcoding/cache/redis/SpringBootDemoCacheRedisApplicationTests.java @@ -0,0 +1,16 @@ +package com.xkcoding.cache.redis; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class SpringBootDemoCacheRedisApplicationTests { + + @Test + public void contextLoads() { + } + +}