|
|
@@ -0,0 +1,138 @@
|
|
|
+server:
|
|
|
+ port: 6004
|
|
|
+spring:
|
|
|
+ application:
|
|
|
+ name: report-server
|
|
|
+ cloud:
|
|
|
+ nacos:
|
|
|
+ config:
|
|
|
+ server-addr: 192.168.0.90:8848
|
|
|
+ discovery:
|
|
|
+ server-addr: 192.168.0.90:8848
|
|
|
+ ip: 192.168.0.90 #默认是局域网ip,固定为外网ip
|
|
|
+ namespace: mes-dev
|
|
|
+ datasource:
|
|
|
+ driver-class-name: org.postgresql.Driver
|
|
|
+ url: jdbc:postgresql://192.168.0.90:15100/dkmes3
|
|
|
+ username: dkmes
|
|
|
+ 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: s.dev01.dkiboss.com
|
|
|
+ port: 14000
|
|
|
+ password: dk
|
|
|
+ zipkin:
|
|
|
+ base-url: http://s.dev01.dkiboss.com:9411/
|
|
|
+ discovery-client-enabled: false
|
|
|
+ sleuth:
|
|
|
+ sampler:
|
|
|
+ probability: 1
|
|
|
+ servlet:
|
|
|
+ multipart:
|
|
|
+ max-file-size: 10MB
|
|
|
+
|
|
|
+logback:
|
|
|
+ file: /home/java_project/dk_mes/${spring.application.name}/${spring.application.name}_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
|
|
|
+ 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=
|
|
|
+
|
|
|
+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
|
|
|
+excel-folder: /home/java_project/dk_mes/mdm-server/excel/
|
|
|
+# 自定义报表导出sql文件路径
|
|
|
+custom-report-sql: /home/java_project/dk_mes/sql/custom-report-sql.sql
|
|
|
+
|