application-jn.yml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. # 项目相关配置
  2. gyee:
  3. #名称
  4. name: v2
  5. #版本
  6. version: 3.9
  7. #版权年份
  8. copyrightYear: 2020
  9. #文件上传路径
  10. defaultBaseDir: D:/v2file/
  11. #地址是否放入项目static目录,如果未Y 放入项目得static。 profile配置失效。 为N存放在D:/v2file/ 前端读取相同,不受影响
  12. isstatic: Y
  13. #开启存放静态文件夹后目录
  14. isroot_dir: static/file_upload/
  15. #邮件功能
  16. #邮箱发送smtp
  17. email_smtp: smtp.sina.com
  18. #邮箱发送端口
  19. email_port: 465
  20. #发送邮箱登录账号
  21. email_account: gyee@163.com
  22. #发送邮箱登录密码
  23. email_password: 1
  24. #实例演示开关 启动该模式删除增加修改会弹出演示模式提示框
  25. demoEnabled: false
  26. #漂亮得拖动验证码 默认false普通验证码、true滚动验证码
  27. rollVerification: true
  28. #实时数据库Url
  29. baseurl: http://10.81.3.155:8011/ts
  30. #API访问ip
  31. #swaggerip: 49.4.50.80:8082
  32. swaggerip: 10.81.3.155:8082
  33. #默认小数位数
  34. digit: 2
  35. realtimedataBase: golden #数据查询模式 golden、hwy
  36. weatherurl: http://10.81.3.155:7011
  37. weatherqygs: hb_qygs
  38. hbmaps: {CL_FDC_KEY: 2003,KB_FDC_KEY: 1460,DX_FDC_KEY: 2186,SY_FDC_KEY: 1366}
  39. initialcode: INITIAL
  40. #tomcat config
  41. server :
  42. port : 8171
  43. session:
  44. timeout: 7200
  45. ##项目名字配置
  46. #servlet :
  47. # context-path : /demo
  48. tomcat :
  49. maxHttpHeaderSize : 8192
  50. max-threads : 128
  51. min-spare-threads : 5
  52. uri-encoding : UTF-8
  53. #shiro 报错修改的地方
  54. max-connections: 200000
  55. max-http-form-post-size: 9000000
  56. #dev环境 mysql7.0
  57. spring :
  58. application:
  59. name: monitor-hb-provider
  60. cloud:
  61. nacos:
  62. discovery:
  63. server-addr: 10.81.3.155:8848
  64. #指定yaml格式的配置
  65. file-extension: yaml
  66. cluster-name: master
  67. username: nacos
  68. password: nacos
  69. #引入其他配置文件,例如ftpHX 未配置文件application-ftpHX.yml
  70. #include: ftpHX,ftpCloud
  71. servlet:
  72. multipart:
  73. #设置总上传的数据大小
  74. max-request-size: 100MB
  75. #单个文件大小
  76. maxFileSize : 30MB
  77. #shiro 报错修改的地方
  78. max-connections: 200000
  79. max-http-post-size: 9000000
  80. #热部署模块
  81. devtools:
  82. restart:
  83. #热部署开关
  84. enabled: true
  85. #指定热部署的目录
  86. additional-paths: src/main/java
  87. #指定目录不更新
  88. exclude: test/**
  89. redis:
  90. database: 0
  91. host: 10.81.3.155
  92. password:
  93. pool:
  94. maxTotal: 20
  95. maxIdle: 20
  96. maxwait: 600000
  97. minIdle: 10
  98. port: 6379
  99. timeout: 600000
  100. datasource:
  101. #type: com.alibaba.druid.pool.DruidDataSource
  102. type: com.alibaba.druid.pool.DruidDataSource
  103. # driverClassName: com.mysql.jdbc.Driver
  104. #druid连接池配置
  105. druid:
  106. #主库数据源
  107. master:
  108. url: jdbc:postgresql://10.81.3.151:5432/wisdom
  109. username: gdprod
  110. password: gd123
  111. driver-class-name: org.postgresql.Driver
  112. #备数据源 #关闭
  113. slave:
  114. # enabled: false
  115. # url: jdbc:mysql://localhost:3306/springbootv3?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=UTC
  116. # username: root
  117. # password: root
  118. #两票数据源
  119. ticket:
  120. # url: jdbc:sqlserver://192.168.2.200:1434;DatabaseName=fdeamnew
  121. # #url: jdbc:sqlserver://10.83.68.98:1434;DatabaseName=fdeamnew
  122. # #url: jdbc:sqlserver://10.0.118.71:1433;DatabaseName=fdeamnew
  123. # username: sa
  124. # password: ibs
  125. # #password: Gd!123456
  126. # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  127. #配置初始化连接数大小
  128. initial-size: 10
  129. # 最大连接数
  130. max-active: 50
  131. #最小连接数
  132. min-idle: 10
  133. #获取连接等待超时时间
  134. max-wait: 5000
  135. pool-prepared-statements: true #是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。
  136. max-pool-prepared-statement-per-connection-size: 20
  137. validation-query: SELECT 1 FROM DUAL
  138. validation-query-timeout: 20000
  139. test-on-borrow: false #申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
  140. test-on-return: false #归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
  141. test-while-idle: true #建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
  142. time-between-eviction-runs-millis: 60000 #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  143. min-evictable-idle-time-millis: 300000 #一个连接在池中最小生存的时间,单位是毫秒
  144. #StatViewServlet配置。(因为暴露的监控信息比较敏感,支持密码加密和访问ip限定)
  145. stat-view-servlet:
  146. enabled: true
  147. url-pattern: /druid/*
  148. #可以增加访问账号密码【去掉注释就可以】
  149. #login-username: admin
  150. #login-password: admin
  151. filter:
  152. stat:
  153. log-slow-sql: true
  154. slow-sql-millis: 1000
  155. merge-sql: false
  156. wall:
  157. config:
  158. multi-statement-allow: true
  159. #mysql 8.0
  160. #spring:
  161. # datasource:
  162. # type: com.alibaba.druid.pool.DruidDataSource
  163. # driverClassName: com.mysql.cj.jdbc.Driver
  164. # #druid连接池配置
  165. # druid:
  166. # # 主库数据源
  167. # master:
  168. # url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT&autoReconnect=true&useSSL=false
  169. # username: root
  170. # password: root
  171. # #树熊数据源
  172. # slave:
  173. # enabled : false
  174. # url: jdbc:mysql://localhost:3306/test2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT&autoReconnect=true&useSSL=false
  175. # username: root
  176. # password: root
  177. # #配置初始化连接数大小
  178. # initial-size: 10
  179. # # 最大连接数
  180. # max-active: 50
  181. # #最小连接数
  182. # min-idle: 10
  183. # #获取连接等待超时时间
  184. # max-wait: 5000
  185. # pool-prepared-statements: true #是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。
  186. # max-pool-prepared-statement-per-connection-size: 20
  187. # validation-query: SELECT 1 FROM DUAL
  188. # validation-query-timeout: 20000
  189. # test-on-borrow: false #申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
  190. # test-on-return: false #归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
  191. # test-while-idle: true #建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
  192. # time-between-eviction-runs-millis: 60000 #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  193. # min-evictable-idle-time-millis: 300000 #一个连接在池中最小生存的时间,单位是毫秒
  194. # #StatViewServlet配置。(因为暴露的监控信息比较敏感,支持密码加密和访问ip限定)
  195. # stat-view-servlet:
  196. # enabled: true
  197. # url-pattern: /druid/*
  198. # #可以增加访问账号密码【去掉注释就可以】
  199. # #login-username: admin
  200. # #login-password: admin
  201. # filter:
  202. # stat:
  203. # log-slow-sql: true
  204. # slow-sql-millis: 1000
  205. # merge-sql: true
  206. # wall:
  207. # config:
  208. # multi-statement-allow: true