鞍钢鲅鱼圈能源管控系统后端代码
liriming
2025-03-10 643f5cb501f8effcc9ea0bcd63d5c37c6cf321db
配置文件
已修改1个文件
21 ■■■■ 文件已修改
ansteel-biz/src/main/resources/application-prod.yaml 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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