From 3b408b8fbd5dc66d138c2089df6a6cbbdfc2f3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BD=A9=E8=BE=95=E9=BE=99=E5=84=BF?= Date: Wed, 13 Mar 2024 13:07:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + pom.xml | 73 +++++++++++++++++++ .../com/huangge1199/blog/BlogApplication.java | 13 ++++ src/main/resources/application-dev.yml | 6 ++ src/main/resources/application.yml | 7 ++ 5 files changed, 100 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/com/huangge1199/blog/BlogApplication.java create mode 100644 src/main/resources/application-dev.yml create mode 100644 src/main/resources/application.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85e7c1d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.idea/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..fd4690d --- /dev/null +++ b/pom.xml @@ -0,0 +1,73 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.2.3 + + + com.huangge1199 + blog + 0.0.1-SNAPSHOT + blog + 一个简单的博客系统 + + 17 + + + + org.springframework.boot + spring-boot-starter-web + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + + com.mysql + mysql-connector-j + 8.0.32 + + + com.mybatis-flex + mybatis-flex-spring-boot3-starter + 1.8.2 + + + com.mybatis-flex + mybatis-flex-codegen + 1.8.2 + + + com.zaxxer + HikariCP + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/com/huangge1199/blog/BlogApplication.java b/src/main/java/com/huangge1199/blog/BlogApplication.java new file mode 100644 index 0000000..f5eb88f --- /dev/null +++ b/src/main/java/com/huangge1199/blog/BlogApplication.java @@ -0,0 +1,13 @@ +package com.huangge1199.blog; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class BlogApplication { + + public static void main(String[] args) { + SpringApplication.run(BlogApplication.class, args); + } + +} diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..1f3d531 --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,6 @@ +# DataSource Config +spring: + datasource: + url: jdbc:mysql://192.168.0.197:3306/blog + username: root + password: huangge1199 \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..42a4e73 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,7 @@ +server: + port: 8888 +spring: + application: + name: blog + profiles: + active: dev \ No newline at end of file