# 数据源配置 spring: datasource: type: com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.cj.jdbc.Driver druid: # 主库数据源 master: url: jdbc:mysql://198.17.188.51:3306/cbwqpf?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: cbwq!xintong # 从库数据源(嗅探) slaveais: # 从数据源开关/默认关闭 enabled: true url: jdbc:mysql://198.17.23.18:3306/ais_database?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: js_test password: Js@123456 # url: jdbc:mysql://198.17.25.31:3306/ais_database?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 # username: root # password: 1qaz!QAZ # 从库数据源(光谱) slaveso2: # 从数据源开关/默认关闭 enabled: true url: jdbc:mysql://198.17.188.56:3306/ship?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: canal password: canal # 从库数据源(黑烟) slaveblack: # 从数据源开关/默认关闭 enabled: true url: jdbc:mysql://198.17.23.20:3306/smoke_api?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root_shipface password: '@P5zQQMbax8xx' # 初始连接数 initialSize: 5 # 最小连接池数量 minIdle: 10 # 最大连接池数量 maxActive: 20 # 配置获取连接等待超时的时间 maxWait: 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 # redis 配置 redis: # 地址 host: localhost # 端口,默认为6379 port: 6379 # 数据库索引 database: 0 # 密码 password: cbwq!xintong # 连接超时时间 timeout: 10s lettuce: pool: # 连接池中的最小空闲连接 min-idle: 0 # 连接池中的最大空闲连接 max-idle: 8 # 连接池的最大数据库连接数 max-active: 8 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms elasticsearch: port: 9200 ip: 198.17.188.51 type: http #访问方式 numberOfReplicas: 2 #副本数 numberOfShards: 5 #分片数 defaultIndex: materials #默认加载索引 searchTimeOut: 10 #搜索超时时长,单位:秒 masterShardTimeOut: 1 #主分片执行更新的超时时长 ,单位:秒 canal: configs: - hostname: 127.0.0.1 port: 11111 destination: heiyan - hostname: 127.0.0.1 port: 11111 destination: so2 - hostname: 127.0.0.1 port: 11111 destination: ais # Swagger配置 swagger: # 是否开启swagger enabled: false # 请求前缀 pathMapping: /prod-api # 子平台 black: snapImgUrl: http://198.17.23.29:8091/heiyandevice/api/shipface/snap/imgurl?id= # 第三方接口 third: shipEepReportRecInfo: http://198.17.188.111:6201/huiyan/getShipEepReportRec # 船舶进出港记录 shipBaseInfo: http://198.17.4.8:9004/getInfosByCondition # 船舶基本信息 shipDynamicInfo: http://198.17.239.239:9004/getInfosByMmsi?mmsi= #船舶动态数据信息 # userTokenInfo: http://198.17.188.64:80/slipperBack/portal/user/userInfo # 大交管用户信息 userTokenInfo: http://198.17.48.74:8290/api/portal/user/userInfo # 大交管用户信息 nwuserTokenInfo: http://198.17.48.74:8290/api/portal/user/userInfo # 内网大交管用户信息 userLogin: http://198.17.48.74:8290/api/main/mobile/login # 综合平台登录接口 system: security: third # 走何种校验方式 self自身用户密码校验;third第三方登录校验 redirectUrl: http://198.17.188.50:8088/home --- ruoyi: # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) profile: C:/cbwq/uploadPath