|
@@ -0,0 +1,138 @@
|
|
|
+# 数据源配置
|
|
|
+spring:
|
|
|
+ datasource:
|
|
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
+ driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
+ druid:
|
|
|
+ # 主库数据源
|
|
|
+ master:
|
|
|
+ url: jdbc:mysql://212.129.138.23:3306/cbwqpf?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
+ username: root
|
|
|
+ password: YbNL5_h]6a4kk
|
|
|
+ # 从库数据源(嗅探)
|
|
|
+ slaveais:
|
|
|
+ # 从数据源开关/默认关闭
|
|
|
+ enabled: true
|
|
|
+ url: jdbc:mysql://47.92.161.189:3306/ais_database?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
+ username: js_test
|
|
|
+ password: js123456
|
|
|
+ # 从库数据源(光谱)
|
|
|
+ slaveso2:
|
|
|
+ # 从数据源开关/默认关闭
|
|
|
+ enabled: true
|
|
|
+ url: jdbc:mysql://212.129.138.23:3306/ship?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
+ username: root
|
|
|
+ password: YbNL5_h]6a4kk
|
|
|
+ # 从库数据源(黑烟)
|
|
|
+ slaveblack:
|
|
|
+ # 从数据源开关/默认关闭
|
|
|
+ enabled: true
|
|
|
+ url: jdbc:mysql://212.129.138.23:3306/smoke_api?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
+ username: root
|
|
|
+ password: YbNL5_h]6a4kk
|
|
|
+ # 初始连接数
|
|
|
+ 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:
|
|
|
+ # 连接超时时间
|
|
|
+ timeout: 10s
|
|
|
+ lettuce:
|
|
|
+ pool:
|
|
|
+ # 连接池中的最小空闲连接
|
|
|
+ min-idle: 0
|
|
|
+ # 连接池中的最大空闲连接
|
|
|
+ max-idle: 8
|
|
|
+ # 连接池的最大数据库连接数
|
|
|
+ max-active: 8
|
|
|
+ # #连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
+ max-wait: -1ms
|
|
|
+elasticsearch:
|
|
|
+ port: 9200
|
|
|
+ ip: 212.129.138.23
|
|
|
+ type: http #访问方式
|
|
|
+ numberOfReplicas: 2 #副本数
|
|
|
+ numberOfShards: 5 #分片数
|
|
|
+ defaultIndex: materials #默认加载索引
|
|
|
+ searchTimeOut: 10 #搜索超时时长,单位:秒
|
|
|
+ masterShardTimeOut: 1 #主分片执行更新的超时时长 ,单位:秒
|
|
|
+
|
|
|
+canal:
|
|
|
+ configs:
|
|
|
+ - hostname: 212.129.138.23
|
|
|
+ port: 11111
|
|
|
+ destination: heiyan
|
|
|
+ - hostname: 212.129.138.23
|
|
|
+ port: 11111
|
|
|
+ destination: so2
|
|
|
+ - hostname: 212.129.138.23
|
|
|
+ port: 11111
|
|
|
+ destination: ais
|
|
|
+
|
|
|
+# Swagger配置
|
|
|
+swagger:
|
|
|
+ # 是否开启swagger
|
|
|
+ enabled: true
|
|
|
+ # 请求前缀
|
|
|
+ pathMapping: /dev-api
|
|
|
+
|
|
|
+# 子平台
|
|
|
+black:
|
|
|
+ snapImgUrl: http://127.0.0.1:8090/api/shipface/snap/imgUrl?id=
|
|
|
+
|
|
|
+# 第三方接口
|
|
|
+third:
|
|
|
+ shipEepReportRecInfo: http://198.17.188.111:6201/huiyan/getShipEepReportRec # 船舶进出港记录
|
|
|
+ shipBaseInfo: http://198.17.239.239:7001/getInfosByCondition # 船舶基本信息
|
|
|
+ shipDynamicInfo: http://198.17.239.239:9004/getInfosByMmsi?mmsi= #船舶动态数据信息
|
|
|
+ userTokenInfo: http://36.156.155.131:8099/api/portal/user/userInfo # 大交管用户信息
|
|
|
+ userLogin: http://36.156.155.131:8099/api/main/mobile/login # 总和平台登录接口
|
|
|
+
|
|
|
+system:
|
|
|
+ security: third # 走何种校验方式 self自身用户密码校验;third第三方登录校验
|
|
|
+ redirectUrl: http://localhost:1024/home
|