| | |
| | | # 项目相关配置 |
| | | platform: |
| | | # 名称 |
| | | name: zgyw |
| | | # 版本 |
| | | version: 1.0.0 |
| | | # 版权年份 |
| | | copyrightYear: 2024 |
| | | # 文件路径 示例( Windows配置D:/zgyw/uploadPath,Linux配置 /home/zgyw/uploadPath) |
| | | profile: /home/zgyw/uploadPath |
| | | # 获取ip地址开关 |
| | | addressEnabled: false |
| | | # 验证码类型 math 数字计算 char 字符验证 |
| | | captchaType: math |
| | | |
| | | |
| | | # 开发环境配置 |
| | | server: |
| | | # 服务器的HTTP端口,默认为8080 |
| | | port: 8080 |
| | | port: 8085 |
| | | servlet: |
| | | # 应用的访问路径 |
| | | context-path: / |
| | | context-path: /zgyw |
| | | tomcat: |
| | | # tomcat的URI编码 |
| | | uri-encoding: UTF-8 |
| | |
| | | spring: |
| | | # 数据源配置 |
| | | datasource: |
| | | url: jdbc:mysql://51.92.65.72:3306/zgyw?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true |
| | | username: root |
| | | password: zgyw@202488 |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | driverClassName: com.mysql.cj.jdbc.Driver |
| | | druid: |
| | | # 主库数据源 |
| | | url: jdbc:mysql://42.193.1.25:3306/zgyw?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: root |
| | | password: 321$YcYl@1970! |
| | | # 初始连接数 |
| | | initialSize: 5 |
| | | # 最小连接池数量 |
| | | minIdle: 10 |
| | | # 最大连接池数量 |
| | | maxActive: 20 |
| | | # 配置获取连接等待超时的时间 |
| | | maxWait: 60000 |
| | | # 配置连接超时时间 |
| | | connectTimeout: 30000 |
| | | # 配置网络超时时间 |
| | | socketTimeout: 60000 |
| | | # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |
| | | timeBetweenEvictionRunsMillis: 60000 |
| | | # 配置一个连接在池中最小生存的时间,单位是毫秒 |
| | | minEvictableIdleTimeMillis: 300000 |
| | | # 配置一个连接在池中最大生存的时间,单位是毫秒 |
| | | maxEvictableIdleTimeMillis: 900000 |
| | | # 配置检测连接是否有效 |
| | | validationQuery: SELECT 1 FROM DUAL |
| | | testWhileIdle: true |
| | | testOnBorrow: false |
| | | testOnReturn: false |
| | | webStatFilter: |
| | | 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 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | |
| | | jpa: |
| | | show-sql: true |
| | | generate-ddl: true |
| | |
| | | spring.data: |
| | | redis: |
| | | # 地址 |
| | | host: 162.14.79.111 |
| | | host: 127.0.0.1 |
| | | # 端口,默认为6379 |
| | | port: 6379 |
| | | password: 234#Wersdf! |
| | | password: |
| | | # 数据库索引 |
| | | database: 0 |
| | | database: 1 |
| | | # 密码(如没有密码请注释掉) |
| | | # password: |
| | | # 连接超时时间 |
| | |
| | | subscriptionConnectionPoolSize: 50 |
| | | |
| | | |
| | | # Swagger配置 |
| | | swagger: |
| | | # 是否开启swagger |
| | | enabled: false |
| | | # 请求前缀 |
| | | pathMapping: /prod-api |
| | | |
| | | # MongoDB配置 |
| | | spring: |
| | | data: |
| | | mongodb: |
| | | uri: mongodb://root:yunwei%402024@127.0.0.1:27017/zgyw?authSource=admin |
| | | |
| | | # 拉取数据请求配置 |
| | | request: |
| | | retry: 4 # 最大重试次数 |
| | | youYunDomain: http://51.92.65.56 # 优云地址 |
| | | haiKangDomain: 51.92.65.48 # 海康地址 |
| | | pythonDomain: 11 # python脚本地址 |
| | | |
| | | youYun: |
| | | tenantId: e10adc3949ba59abbe56e057f20f88dd |
| | | email: yunwei |
| | | passwd: Yesc@123 |
| | | apikey: 72fcfd6825304f7fa0453134de620f3a |
| | | accesskey: fc9503a521544e76a8e69b912a2f177bc6362b19 |
| | | |
| | | # gb281视频网关地址,用于获取rtsp格式的流地址 |
| | | rtsp: |
| | | server: http://192.168.3.88:7788 |