|
|
@@ -1,20 +1,177 @@
|
|
|
server:
|
|
|
- port: 6003
|
|
|
+ port: 7102
|
|
|
spring:
|
|
|
application:
|
|
|
name: mdm-server
|
|
|
cloud:
|
|
|
nacos:
|
|
|
config:
|
|
|
- file-extension: yaml
|
|
|
- server-addr: ${NACOS_HOST:mse-ab4cb036-nacos-ans.mse.aliyuncs.com:8848}
|
|
|
- namespace: ${NACOS_SPACE:hgscrm-prod}
|
|
|
- shared-configs:
|
|
|
- - data-id: common.yaml
|
|
|
- group: DEFAULT_GROUP
|
|
|
- group: ${group-id:DEFAULT_GROUP}
|
|
|
+ server-addr: localhost:8848
|
|
|
discovery:
|
|
|
- server-addr: ${NACOS_HOST:mse-ab4cb036-nacos-ans.mse.aliyuncs.com:8848}
|
|
|
- namespace: ${NACOS_SPACE:hgscrm-prod}
|
|
|
+ server-addr: localhost:8848
|
|
|
+ namespace: dkic_op
|
|
|
+ datasource:
|
|
|
+ driver-class-name: org.postgresql.Driver
|
|
|
+ url: jdbc:postgresql://localhost:15100/dkic_pro_a0
|
|
|
+ username: dkic_sp
|
|
|
+ password: dk
|
|
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
+ druid:
|
|
|
+ initial-size: 10 # 初始化时建立物理连接的个数。初始化发生在显示调用init方法, 或者第一次getConnection时
|
|
|
+ max-active: 150 # 最大连接池连接数量,最大活跃连接数
|
|
|
+ min-idle: 10 # 最小连接池连接数量,最小空闲数量
|
|
|
+ max-wait: 300000 # 获取连接时最大等待时间,单位毫秒
|
|
|
+ # 是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。
|
|
|
+ pool-prepared-statements: false
|
|
|
+ # 指定每个连接上PSCache的大小
|
|
|
+ # max-pool-prepared-statement-per-connection-size: 20
|
|
|
+ # 和上面的等价
|
|
|
+ # max-open-prepared-statements:
|
|
|
+ # 指定检测连接sql,如果是null,会影响testWhileIdle、testOnBorrow、testOnReturn失效,如果底层代码use-ping-method是true,默认使用ping
|
|
|
+ validation-query: SELECT 1
|
|
|
+ validation-query-timeout: 500
|
|
|
+ # 申请连接时会使用validationQuery检测连接是否有效,true会降低性能,如果是true,并且检测到连接已关闭,会获取其它的可用的连接
|
|
|
+ test-on-borrow: false
|
|
|
+ # 归还连接时会使用validationQuery检测连接是否有效,true会降低性能,如果是true,并且检测到连接已关闭,会获取其它的可用的连接,放回数据库线程池
|
|
|
+ test-on-return: false
|
|
|
+ # 建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果此连接空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
|
|
|
+ test-while-idle: true
|
|
|
+ # 1)配合testWhileIdle=true时使用,如果当前jdbc使用间隔大于timeBetweenEvictionRunsMillis配置的空闲连接过期时间,执行validationQuery检测连接是否有效。
|
|
|
+ # 数据库会主动超时并断开连接,因此建议timeBetweenEvictionRunsMillis小于数据库的连接主动断开时间(如mysql的wait_timeout和interactive_timeout)
|
|
|
+ # 2)配置间隔多久才进行一次检测,Destroy线程检测需要关闭的空闲连接的时间,单位是毫秒
|
|
|
+ time-between-eviction-runs-millis: 55000
|
|
|
+ # 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
+ min-evictable-idle-time-millis: 30000
|
|
|
+ # max-evictable-idle-time-millis:
|
|
|
+ # 通过connectProperties属性来打开mergeSql功能;记录慢SQL
|
|
|
+ connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
|
|
+ filters: slf4j #sql文不允许写#注释,只可以在xml中写 <!-- -->注释
|
|
|
+ stat-view-servlet:
|
|
|
+ enabled: true
|
|
|
+ login-username: dongke
|
|
|
+ login-password: dongke
|
|
|
+ url-pattern: /druid/*
|
|
|
+ reset-enable: false
|
|
|
+ web-stat-filter:
|
|
|
+ exclusions: "*.js,*.gif,*.jpg,*.css,/druid/*"
|
|
|
+ redis:
|
|
|
+ host: localhost
|
|
|
+ port: 6379
|
|
|
+ password:
|
|
|
+ servlet:
|
|
|
+ multipart:
|
|
|
+ max-file-size: 10MB
|
|
|
|
|
|
+logback:
|
|
|
+ file: /data/java_project/dkic_op/logs
|
|
|
|
|
|
+feign:
|
|
|
+ sentinel:
|
|
|
+ enabled: true
|
|
|
+ client:
|
|
|
+ config:
|
|
|
+ default:
|
|
|
+ connectTimeout: 60000
|
|
|
+ readTimeout: 60000
|
|
|
+
|
|
|
+mybatis-plus:
|
|
|
+ configuration:
|
|
|
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
+ map-underscore-to-camel-case: true
|
|
|
+ call-setters-on-nulls: true
|
|
|
+ type-aliases-package: com.dk.oauth.dto,com.dk.common.infrastructure.handler #类型转换器包名
|
|
|
+ mapper-locations: classpath:/mapper/**/*Mapper.xml,com/hegii/scrm/common/mapper/opinfo/*.xml
|
|
|
+
|
|
|
+mybatis:
|
|
|
+ config-location: classpath:mybatis-config.xml
|
|
|
+
|
|
|
+swagger:
|
|
|
+ enabled: true
|
|
|
+
|
|
|
+wx:
|
|
|
+ code2Session: https://qyapi.weixin.qq.com/cgi-bin/miniprogram/jscode2session?
|
|
|
+ accessToken: https://qyapi.weixin.qq.com/cgi-bin/gettoken?
|
|
|
+ appId: wx414cffd0fc05e151
|
|
|
+ appSecret: 868ec372b9da961eb42989559bc9ccc5
|
|
|
+ apiUrl: https://api.weixin.qq.com/sns/jscode2session?
|
|
|
+ # 企信企业id
|
|
|
+ corpid: ww796c5d1684937b2f
|
|
|
+ # 获取企业标签库
|
|
|
+ corp_tag_list: https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_corp_tag_list?access_token=
|
|
|
+ # 添加企业客户标签
|
|
|
+ add_corp_tag: https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_corp_tag?access_token=
|
|
|
+ # 编辑企业客户标签
|
|
|
+ edit_corp_tag: https://qyapi.weixin.qq.com/cgi-bin/externalcontact/edit_corp_tag?access_token=
|
|
|
+ # 删除企业客户标签
|
|
|
+ del_corp_tag: https://qyapi.weixin.qq.com/cgi-bin/externalcontact/del_corp_tag?access_token=
|
|
|
+ # 支付的信息
|
|
|
+ pay:
|
|
|
+ # 商户号 微信支付
|
|
|
+ mchId: 1669762764
|
|
|
+ # 小程序的appid
|
|
|
+ appId: wxe27c8f5249b7aeab
|
|
|
+ # 小程序的appSecret
|
|
|
+ appSecret: 9bd0efa102f148ff4ca09a1152310555
|
|
|
+ # 支付密钥
|
|
|
+ mchKey: 399e76d7db9511ee9c24fa163eacb119
|
|
|
+ # 证书路径
|
|
|
+ keyPath: /mnt/cert/2021/05/11/404727f0-e5be-424e-b009-59f1ec8d102e.p12
|
|
|
+ # 小程序支付的回调接口地址
|
|
|
+ wechatNotifyUrl: https://s.dev01.dkiboss.com:7000/api/mdm-server/wxapi/basic/wechat/pay/notify/order
|
|
|
+
|
|
|
+
|
|
|
+dongke:
|
|
|
+ base:
|
|
|
+ pojo:
|
|
|
+ valid-key: flg_valid #db有效标识
|
|
|
+ is-valid: true #表示有效的值
|
|
|
+ un-valid: false #表示无效的值
|
|
|
+ delete-key: flg_del #db删除标识
|
|
|
+ is-delete: true #表示删除的值
|
|
|
+ un-delete: false #表示未删除的值
|
|
|
+ dynamic-ds:
|
|
|
+ ds-key: DS
|
|
|
+ ds:
|
|
|
+ table-name:
|
|
|
+
|
|
|
+# 单点登录是否开启
|
|
|
+single-sign-on: false
|
|
|
+uploadPath: ''
|
|
|
+printTemplatePath: ''
|
|
|
+
|
|
|
+aes-key: b6f64c1001b04b9f
|
|
|
+client-app-id: 48849faf-8bbb-4a29-9548-0ba1c3df963f
|
|
|
+
|
|
|
+xxl:
|
|
|
+ job:
|
|
|
+ admin:
|
|
|
+ addresses: http://s.dev01.dkiboss.com:16100
|
|
|
+ accessToken:
|
|
|
+ executor:
|
|
|
+ appname: mes-mdm
|
|
|
+ address:
|
|
|
+ ip:
|
|
|
+ port: 16001
|
|
|
+ logpath: /data/applogs/xxl-job/jobhandler
|
|
|
+ logretentiondays: 30
|
|
|
+
|
|
|
+
|
|
|
+pdf-folder: C:\Users\admin\Desktop\pdf\
|
|
|
+# 自定义报表导出sql文件路径
|
|
|
+custom-report-sql: C:\Users\admin\Desktop\custom-report-sql.sql
|
|
|
+####apk文件夾
|
|
|
+apk-folder: D:\download\
|
|
|
+####原生android-webiview
|
|
|
+apk-file-name: app-debug.apk
|
|
|
+apk-version: 23.05.10.01
|
|
|
+#### X5內核
|
|
|
+apk-file-name-smtt: app-debug-x5.apk
|
|
|
+apk-version-smtt: 23.05.10.01
|
|
|
+#### crosswalk內核
|
|
|
+apk-file-name-crosswalk: app-debug-crosswalk.apk
|
|
|
+apk-version-crosswalk: 23.05.10.01
|
|
|
+
|
|
|
+excel-folder: /data/java_project/dkic_op/excel/
|
|
|
+
|
|
|
+#文件上传
|
|
|
+upload-path: /data/java_project/dkic_op/file/
|