From 3b70bf45cca6a8b9c51944bfb70dd579afaab7c2 Mon Sep 17 00:00:00 2001
From: jieyuu <645634619@qq.com>
Date: Mon, 17 Feb 2025 12:21:25 +0800
Subject: [PATCH] =?UTF-8?q?build(server):=20=E6=9B=B4=E6=96=B0=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E9=85=8D=E7=BD=AE=E5=92=8C=E6=95=B0=E6=8D=AE=E5=BA=93?=
=?UTF-8?q?=E8=BF=9E=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在 common 模块的 pom.xml 中添加版本号- 修改数据库连接 URL 为本地地址
- 在 server 模块的 pom.xml 中添加 Spring Boot插件配置
---
common/pom.xml | 1 +
server/pom.xml | 23 +++++++++++++++++++++++
server/src/main/resources/application.yml | 2 +-
3 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/common/pom.xml b/common/pom.xml
index 3619516..b5d1982 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -9,6 +9,7 @@
common
+ 1.0-SNAPSHOT
org.projectlombok
diff --git a/server/pom.xml b/server/pom.xml
index e37d28c..da31d9a 100644
--- a/server/pom.xml
+++ b/server/pom.xml
@@ -10,6 +10,7 @@
server
+ jar
8
@@ -52,4 +53,26 @@
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.6.0
+
+ net.carbon.ServerApplication
+ app
+
+
+
+ repackage
+
+ repackage
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/server/src/main/resources/application.yml b/server/src/main/resources/application.yml
index 2306418..2b8f03b 100644
--- a/server/src/main/resources/application.yml
+++ b/server/src/main/resources/application.yml
@@ -4,7 +4,7 @@ server:
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://106.52.88.120:3306/demo?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
+ url: jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd