diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ec376bb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +target \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..f89aff2 --- /dev/null +++ b/pom.xml @@ -0,0 +1,18 @@ + + 4.0.0 + + cn.hezhaohui + redis-template + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-data-redis + 3.2.2 + + + + diff --git a/src/main/java/cn/hezhaohui/Application.java b/src/main/java/cn/hezhaohui/Application.java new file mode 100644 index 0000000..c792b2d --- /dev/null +++ b/src/main/java/cn/hezhaohui/Application.java @@ -0,0 +1,11 @@ +package cn.hezhaohui; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Application { + public static void main(String[] args) { + SpringApplication.run(Application.class, args); + } +} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..7ca0bfd --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,7 @@ +spring: + data: + redis: + database: 0 + host: 47.121.181.112 + port: 6379 + password: dn293830 \ No newline at end of file