From 083a8771d2b10c24e845919106d1fb632e5bda2f Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Wed, 18 Dec 2024 12:26:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90=E9=85=8D=E7=BD=AE=E5=B9=B6=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 .idea/dataSources.xml 中的数据源配置,更新为新的 MySQL 数据源 - 更新 DataResourceController 中的属性名称,以适应新的数据库结构 - 修改 CsvResourceFormat、JsonLineResourceFormat 和 JsonResourceFormat 类中的属性名称 - 更新 application.yml 中的数据库配置,使用新的 MySQL 数据源 - 在 pom.xml 中添加 MySQL 连接器依赖,以支持新的数据库 --- .idea/dataSources.xml | 4 ++-- gringotts-web/pom.xml | 4 ++++ .../domain/controller/DataResourceController.java | 12 ++++++------ .../web/domain/entity/format/CsvResourceFormat.java | 2 +- .../domain/entity/format/JsonLineResourceFormat.java | 2 +- .../web/domain/entity/format/JsonResourceFormat.java | 2 +- gringotts-web/src/main/resources/application.yml | 8 ++++---- 7 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index 4f81532..6d1b44e 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -13,11 +13,11 @@ $ProjectFileDir$ - + mysql.8 true com.mysql.cj.jdbc.Driver - jdbc:mysql://frp-air.top:43458 + jdbc:mysql://132.122.1.185:31000/gringotts diff --git a/gringotts-web/pom.xml b/gringotts-web/pom.xml index e2b341b..5fad3e2 100644 --- a/gringotts-web/pom.xml +++ b/gringotts-web/pom.xml @@ -34,6 +34,10 @@ ${hibernate.version} provided + + mysql + mysql-connector-java + com.h2database h2 diff --git a/gringotts-web/src/main/java/com/eshore/gringotts/web/domain/controller/DataResourceController.java b/gringotts-web/src/main/java/com/eshore/gringotts/web/domain/controller/DataResourceController.java index 6f1969e..08cf84d 100644 --- a/gringotts-web/src/main/java/com/eshore/gringotts/web/domain/controller/DataResourceController.java +++ b/gringotts-web/src/main/java/com/eshore/gringotts/web/domain/controller/DataResourceController.java @@ -174,18 +174,18 @@ public class DataResourceController extends SimpleControllerSupport