From 5406eeb9ff8fac8f137e49d5b7717bb61b9270a6 Mon Sep 17 00:00:00 2001 From: Wonder Date: Mon, 20 Oct 2025 16:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=94=A7Chore:=20=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E5=AF=BC=E5=85=A5=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ pom.xml | 18 ++++++++++++++++++ src/main/java/cn/hezhaohui/Application.java | 11 +++++++++++ src/main/resources/application.yml | 7 +++++++ 4 files changed, 38 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/cn/hezhaohui/Application.java create mode 100644 src/main/resources/application.yml 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