Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Pangea-Agent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gavin-Group
Pangea-Agent
Commits
53570949
Commit
53570949
authored
Dec 18, 2025
by
youxiaoji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* [增加数据库配置环境变量]
parent
1c89f4f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
application.yml
backend/src/main/resources/application.yml
+8
-9
No files found.
backend/src/main/resources/application.yml
View file @
53570949
...
...
@@ -4,10 +4,10 @@ spring:
# 数据源配置
datasource
:
url
:
jdbc:mysql://
192.168.219.129:3306/hiagent?useUnicode=true&characterEncoding=utf-8&useSSL=false
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
123456Aa?
url
:
jdbc:mysql://
${DB_HOST:192.168.219.129}:3306/hiagent?allowMultiQueries=true&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai
driver-class-name
:
${DB_DRIVER:com.mysql.cj.jdbc.Driver}
username
:
${DB_NAME:root}
password
:
${DB_PASSWORD:123456Aa?}
hikari
:
maximum-pool-size
:
10
minimum-idle
:
2
...
...
@@ -22,7 +22,6 @@ spring:
sql
:
init
:
schema-locations
:
classpath:schema.sql
data-locations
:
classpath:data.sql
mode
:
always
# JPA/Hibernate配置
...
...
@@ -36,10 +35,10 @@ spring:
format_sql
:
true
# H2 Console配置(仅开发环境)
h2
:
console
:
enabled
:
true
path
:
/h2-console
#
h2:
#
console:
#
enabled: true
#
path: /h2-console
# Redis配置
data
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment