1
mirror of https://github.com/CarmJos/MoeTeleport.git synced 2026-06-04 16:46:10 +08:00

修改数据库配置读取方式,使其更简单明了

This commit is contained in:
2022-02-25 05:43:47 +08:00
parent e186e5ea0a
commit f3c5ff6eb6
3 changed files with 20 additions and 5 deletions
+5 -1
View File
@@ -33,9 +33,13 @@ storage:
mysql:
# 数据库驱动路径
driver: "com.mysql.cj.jdbc.Driver"
url: "jdbc:mysql://127.0.0.1:3306/<db-name>"
# 数据库连接配置
host: "127.0.0.1"
port: 3306
database: "minecraft"
username: "username"
password: "password"
# 插件相关表的名称
tables:
last-location: "mt_last_locations"
home: "mt_homes"