123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- # 项目相关配置
- gyee:
- #名称
- name: v2
- #版本
- version: 3.9
- #版权年份
- copyrightYear: 2020
- #文件上传路径
- defaultBaseDir: D:/v2file/
- #地址是否放入项目static目录,如果未Y 放入项目得static。 profile配置失效。 为N存放在D:/v2file/ 前端读取相同,不受影响
- isstatic: Y
- #开启存放静态文件夹后目录
- isroot_dir: static/file_upload/
- #邮件功能
- #邮箱发送smtp
- email_smtp: smtp.sina.com
- #邮箱发送端口
- email_port: 465
- #发送邮箱登录账号
- email_account: gyee@163.com
- #发送邮箱登录密码
- email_password: 1
- #实例演示开关 启动该模式删除增加修改会弹出演示模式提示框
- demoEnabled: false
- #漂亮得拖动验证码 默认false普通验证码、true滚动验证码
- rollVerification: true
- #实时数据库Url
- baseurl: http://10.81.3.155:8011/ts
- #API访问ip
- #swaggerip: 49.4.50.80:8082
- swaggerip: 10.81.3.155:8082
- #默认小数位数
- digit: 2
- realtimedataBase: golden #数据查询模式 golden、hwy
- weatherurl: http://10.81.3.155:7011
- weatherqygs: hb_qygs
- hbmaps: {CL_FDC_KEY: 2003,KB_FDC_KEY: 1460,DX_FDC_KEY: 2186,SY_FDC_KEY: 1366}
- initialcode: INITIAL
- #tomcat config
- server :
- port : 8171
- session:
- timeout: 7200
- ##项目名字配置
- #servlet :
- # context-path : /demo
- tomcat :
- maxHttpHeaderSize : 8192
- max-threads : 128
- min-spare-threads : 5
- uri-encoding : UTF-8
- #shiro 报错修改的地方
- max-connections: 200000
- max-http-form-post-size: 9000000
- #dev环境 mysql7.0
- spring :
- application:
- name: monitor-hb-provider
- cloud:
- nacos:
- discovery:
- server-addr: 10.81.3.155:8848
- #指定yaml格式的配置
- file-extension: yaml
- cluster-name: master
- username: nacos
- password: nacos
- #引入其他配置文件,例如ftpHX 未配置文件application-ftpHX.yml
- #include: ftpHX,ftpCloud
- servlet:
- multipart:
- #设置总上传的数据大小
- max-request-size: 100MB
- #单个文件大小
- maxFileSize : 30MB
- #shiro 报错修改的地方
- max-connections: 200000
- max-http-post-size: 9000000
- #热部署模块
- devtools:
- restart:
- #热部署开关
- enabled: true
- #指定热部署的目录
- additional-paths: src/main/java
- #指定目录不更新
- exclude: test/**
- redis:
- database: 0
- host: 10.81.3.155
- password:
- pool:
- maxTotal: 20
- maxIdle: 20
- maxwait: 600000
- minIdle: 10
- port: 6379
- timeout: 600000
- datasource:
- #type: com.alibaba.druid.pool.DruidDataSource
- type: com.alibaba.druid.pool.DruidDataSource
- # driverClassName: com.mysql.jdbc.Driver
- #druid连接池配置
- druid:
- #主库数据源
- master:
- url: jdbc:postgresql://10.81.3.151:5432/wisdom
- username: gdprod
- password: gd123
- driver-class-name: org.postgresql.Driver
- #备数据源 #关闭
- slave:
- # enabled: false
- # url: jdbc:mysql://localhost:3306/springbootv3?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=UTC
- # username: root
- # password: root
- #两票数据源
- ticket:
- # url: jdbc:sqlserver://192.168.2.200:1434;DatabaseName=fdeamnew
- # #url: jdbc:sqlserver://10.83.68.98:1434;DatabaseName=fdeamnew
- # #url: jdbc:sqlserver://10.0.118.71:1433;DatabaseName=fdeamnew
- # username: sa
- # password: ibs
- # #password: Gd!123456
- # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
- #配置初始化连接数大小
- initial-size: 10
- # 最大连接数
- max-active: 50
- #最小连接数
- min-idle: 10
- #获取连接等待超时时间
- max-wait: 5000
- pool-prepared-statements: true #是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。
- max-pool-prepared-statement-per-connection-size: 20
- validation-query: SELECT 1 FROM DUAL
- validation-query-timeout: 20000
- test-on-borrow: false #申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
- test-on-return: false #归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
- test-while-idle: true #建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
- time-between-eviction-runs-millis: 60000 #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
- min-evictable-idle-time-millis: 300000 #一个连接在池中最小生存的时间,单位是毫秒
- #StatViewServlet配置。(因为暴露的监控信息比较敏感,支持密码加密和访问ip限定)
- stat-view-servlet:
- enabled: true
- url-pattern: /druid/*
- #可以增加访问账号密码【去掉注释就可以】
- #login-username: admin
- #login-password: admin
- filter:
- stat:
- log-slow-sql: true
- slow-sql-millis: 1000
- merge-sql: false
- wall:
- config:
- multi-statement-allow: true
- #mysql 8.0
- #spring:
- # datasource:
- # type: com.alibaba.druid.pool.DruidDataSource
- # driverClassName: com.mysql.cj.jdbc.Driver
- # #druid连接池配置
- # druid:
- # # 主库数据源
- # master:
- # url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT&autoReconnect=true&useSSL=false
- # username: root
- # password: root
- # #树熊数据源
- # slave:
- # enabled : false
- # url: jdbc:mysql://localhost:3306/test2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT&autoReconnect=true&useSSL=false
- # username: root
- # password: root
- # #配置初始化连接数大小
- # initial-size: 10
- # # 最大连接数
- # max-active: 50
- # #最小连接数
- # min-idle: 10
- # #获取连接等待超时时间
- # max-wait: 5000
- # pool-prepared-statements: true #是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。
- # max-pool-prepared-statement-per-connection-size: 20
- # validation-query: SELECT 1 FROM DUAL
- # validation-query-timeout: 20000
- # test-on-borrow: false #申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
- # test-on-return: false #归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
- # test-while-idle: true #建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
- # time-between-eviction-runs-millis: 60000 #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
- # min-evictable-idle-time-millis: 300000 #一个连接在池中最小生存的时间,单位是毫秒
- # #StatViewServlet配置。(因为暴露的监控信息比较敏感,支持密码加密和访问ip限定)
- # stat-view-servlet:
- # enabled: true
- # url-pattern: /druid/*
- # #可以增加访问账号密码【去掉注释就可以】
- # #login-username: admin
- # #login-password: admin
- # filter:
- # stat:
- # log-slow-sql: true
- # slow-sql-millis: 1000
- # merge-sql: true
- # wall:
- # config:
- # multi-statement-allow: true
|