From 39e4e034372b2b99966872c82756ab9165c23fd1 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Wed, 18 Dec 2024 16:26:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=96=B0=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 dev 和 build 环境配置 - 更新 macOS 环境配置- 添加 MySQL 和 H2 数据库配置 --- .../src/main/resources/application.yml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/gringotts-web/src/main/resources/application.yml b/gringotts-web/src/main/resources/application.yml index 03c5e70..29221de 100644 --- a/gringotts-web/src/main/resources/application.yml +++ b/gringotts-web/src/main/resources/application.yml @@ -39,7 +39,29 @@ logging: spring: config: activate: - on-profile: macOS + on-profile: dev + datasource: + url: jdbc:h2:./database;DATABASE_TO_LOWER=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE + username: lanyuanxiaoyao + password: lanyuanxiaoyao + driver-class-name: org.h2.Driver + +--- +spring: + config: + activate: + on-profile: build + datasource: + url: jdbc:mysql://132.122.1.185:31000/gringotts + username: iap + password: SLvwP6@SM2J*SbUw_iap + driver-class-name: com.mysql.cj.jdbc.Driver + +--- +spring: + config: + activate: + on-profile: macos gringotts: upload: upload-path: /Users/lanyuanxiaoyao/Project/IdeaProjects/gringotts/gringotts-web/target/upload