From 643f5cb501f8effcc9ea0bcd63d5c37c6cf321db Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期一, 10 三月 2025 15:20:10 +0800 Subject: [PATCH] 配置文件 --- ansteel-biz/src/main/resources/application-prod.yaml | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ansteel-biz/src/main/resources/application-prod.yaml b/ansteel-biz/src/main/resources/application-prod.yaml index b72949e..73cc658 100644 --- a/ansteel-biz/src/main/resources/application-prod.yaml +++ b/ansteel-biz/src/main/resources/application-prod.yaml @@ -35,9 +35,9 @@ primary: master datasource: master: - url: jdbc:mysql://10.50.37.62:3306/iailab_expert_tenant_ansteel?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 + url: jdbc:mysql://localhost:3306/iailab_fast_tenant_ansteel?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 username: root - password: 123456 + password: iailab2019 slave: # 模拟从库,可根据自己需要修改 lazy: true # 开启懒加载,保证启动速度 url: jdbc:mysql://127.0.0.1:3306/iailab_expert_tenant_ansteel?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true @@ -46,10 +46,20 @@ # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 redis: - host: 10.50.37.62 # 地址 + host: 127.0.0.1 # 地址 port: 6379 # 端口 database: 10 # 数据库索引 - password: 123456 # 密码,建议生产环境开启 + #password: 123456 # 密码,建议生产环境开启 + +--- #################### 监控相关配置 #################### + +# Actuator 监控端点的配置项 +management: + endpoints: + web: + base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator + exposure: + include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 --- #################### 平台相关配置 #################### @@ -64,10 +74,9 @@ access-log: # 访问日志的配置项 enable: false token: - base-url: http://10.50.37.62:48080/admin-api/system + base-url: http://127.0.0.1:48080/admin-api/system tenant-id: 176 client-id: ansteel client-secret: ansteel111111111111111 username: ansteel password: 123456 - -- Gitblit v1.9.3