application-prd.yml 4.16 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# 开发环境配置
server:
  # 服务器的HTTP端口,默认为8080
  port: 8909
  servlet:
    # 应用的访问路径
    context-path: /dangerManage
  tomcat:
    # tomcat的URI编码
    uri-encoding: UTF-8
    # tomcat最大线程数,默认为200
    max-threads: 800
    # Tomcat启动初始化的线程数,默认值25
    min-spare-threads: 30

耿迪迪's avatar
耿迪迪 committed
16 17 18 19 20 21 22 23
# 数据源配置
spring:
    datasource:
        type: com.alibaba.druid.pool.DruidDataSource
        driverClassName: com.mysql.cj.jdbc.Driver
        druid:
            # 主库数据源
            master:
耿迪迪's avatar
耿迪迪 committed
24
                url: jdbc:mysql://36.138.181.113:33060/danger_manage_area_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
耿迪迪's avatar
耿迪迪 committed
25
                username: root
耿迪迪's avatar
耿迪迪 committed
26 27 28
                password: zehong_/sjz!D
            # sqlserver 数据源
            sqlserver:
耿迪迪's avatar
耿迪迪 committed
29
                # 从数据源开关/默认关闭
耿迪迪's avatar
耿迪迪 committed
30 31 32 33 34
                enabled: true
                driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
                url: jdbc:sqlserver://218.207.92.101:1433;DatabaseName=Park_DB
                username: sa
                password: haosql
耿迪迪's avatar
耿迪迪 committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
            # 初始连接数
            initialSize: 5
            # 最小连接池数量
            minIdle: 10
            # 最大连接池数量
            maxActive: 20
            # 配置获取连接等待超时的时间
            maxWait: 60000
            # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
            timeBetweenEvictionRunsMillis: 60000
            # 配置一个连接在池中最小生存的时间,单位是毫秒
            minEvictableIdleTimeMillis: 300000
            # 配置一个连接在池中最大生存的时间,单位是毫秒
            maxEvictableIdleTimeMillis: 900000
            # 配置检测连接是否有效
耿迪迪's avatar
耿迪迪 committed
50
            validationQuery: SELECT 1
耿迪迪's avatar
耿迪迪 committed
51 52 53
            testWhileIdle: true
            testOnBorrow: false
            testOnReturn: false
54
            webStatFilter:
耿迪迪's avatar
耿迪迪 committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
                enabled: true
            statViewServlet:
                enabled: true
                # 设置白名单,不填则允许所有访问
                allow:
                url-pattern: /druid/*
                # 控制台管理用户名和密码
                login-username: ruoyi
                login-password: 123456
            filter:
                stat:
                    enabled: true
                    # 慢SQL记录
                    log-slow-sql: true
                    slow-sql-millis: 1000
                    merge-sql: true
                wall:
                    config:
                        multi-statement-allow: true
    # redis 配置
    redis:
      # 地址
77
      host: 127.0.0.1
耿迪迪's avatar
耿迪迪 committed
78
      # 端口,默认为6379
79
      port: 6379
耿迪迪's avatar
耿迪迪 committed
80 81 82
      # 数据库索引
      database: 0
      # 密码
83
      password:
耿迪迪's avatar
耿迪迪 committed
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
      # 连接超时时间
      timeout: 10s
      lettuce:
        pool:
          # 连接池中的最小空闲连接
          min-idle: 0
          # 连接池中的最大空闲连接
          max-idle: 8
          # 连接池的最大数据库连接数
          max-active: 8
          # #连接池最大阻塞等待时间(使用负值表示没有限制)
          max-wait: -1ms


# 项目相关配置
zehong:
  # 名称
  name: Zehong
  # 版本
  version: 3.5.0
  # 版权年份
  copyrightYear: 2021
  # 实例演示开关
  demoEnabled: true
  # 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
  profile: /home/zehong/uploadPath
  # 获取ip地址开关
  addressEnabled: false
  # 验证码类型 math 数组计算 char 字符验证
113 114 115 116 117 118 119 120 121 122 123 124
  captchaType: math


#虹软人脸识别配置(linux配置)
config:
  arcface-sdk:
     #算法引擎路径 示例(Windows配置\danger-manage-admin\arcsoft_lib\WIN64,Linux配置/arcsoft_lib/LINUX64)
     sdk-lib-path: /arcsoft_lib/LINUX64
     app-id: 3ZM3ayaRriUPWzzy29QsqeynFcpmu9zMVXGjBrQ4rPkL
     sdk-key: J1wqG4VVGJYLe5YYT2hQN3xHSqLEwrZJBBRQmuEXkZqc
     detect-face-max-num: 10
     detect-face-scale-val: 32
125
     thread-pool-size: 5
126 127 128

#门禁抓拍图片地址
entrance-guard-catch-pic-url: https://27.128.189.137:6113