application.yml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. server:
  2. port: 8080
  3. spring:
  4. datasource:
  5. primaryReadWrite:
  6. driver-class-name: com.mysql.jdbc.Driver
  7. max-active: 50
  8. max-idle: 50 #最大空闲连接
  9. min-idle: 10 #最小空闲连接
  10. validation-query-timeout: 20
  11. log-validation-errors: true
  12. validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
  13. validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
  14. test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
  15. test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
  16. idle-timeout: 30000
  17. connection-test-query: SELECT 1
  18. num-tests-per-eviction-run: 50 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
  19. test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
  20. min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
  21. time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
  22. primaryRead:
  23. driver-class-name: com.mysql.jdbc.Driver
  24. max-active: 50
  25. max-idle: 50 #最大空闲连接
  26. min-idle: 10 #最小空闲连接
  27. validation-query-timeout: 20
  28. log-validation-errors: true
  29. validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
  30. validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
  31. test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
  32. test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
  33. idle-timeout: 30000
  34. connection-test-query: SELECT 1
  35. num-tests-per-eviction-run: 50 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
  36. test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
  37. min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
  38. time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
  39. # REDIS
  40. redis:
  41. database: 0 # Database index used by the connection factory.
  42. password: # Login password of the redis server.
  43. timeout: 0 # Connection timeout in milliseconds.
  44. #sentinel:
  45. # master: # Name of Redis server.
  46. # nodes: # Comma-separated list of host:port pairs.
  47. pool:
  48. max-active: 8 # Max number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
  49. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  50. max-wait: -1 # Maximum amount of time (in milliseconds) a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
  51. min-idle: 1 # Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if it is positive.
  52. mail:
  53. default-encoding: utf8
  54. protocol: smtp
  55. host: smtp.qq.com
  56. port: 465
  57. username: 1501877145
  58. from: 1501877145@qq.com
  59. to: 494679975@qq.com #接受者,多个接受逗号分隔,接受者邮箱要开启IMAP/SMTP服务(不开可能会在垃圾箱)
  60. password: pnubhfagxeophfej
  61. properties:
  62. mail:
  63. transport:
  64. smtp:
  65. auth: true #是否开始权限验证
  66. ssl:
  67. enable: true #使用sslmail.transport.protocol
  68. multipart:
  69. max-file-size: 100MB
  70. max-request-size: 100MB
  71. security:
  72. basic:
  73. username: jkzl
  74. password: jkzlehr
  75. logging:
  76. level:
  77. root: INFO
  78. redis:
  79. quota:
  80. current:
  81. expire: 24 #实时统计redis 的过期时间 默认是2小时
  82. ---
  83. spring:
  84. profiles: cwd
  85. datasource:
  86. primaryReadWrite:
  87. url: jdbc:mysql://172.19.103.85/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  88. username: luofaqiang
  89. password: luofaqiang
  90. primaryRead:
  91. url: jdbc:mysql://172.19.103.85/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  92. username: luofaqiang
  93. password: luofaqiang
  94. redis:
  95. host: 172.19.103.88
  96. port: 6379 # Redis server port.
  97. fv:
  98. jdbc:
  99. driver: com.mysql.jdbc.Driver
  100. url: jdbc:mysql://172.19.103.85/fv?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  101. username: luofaqiang
  102. password: luofaqiang
  103. ---
  104. spring:
  105. profiles: test
  106. datasource:
  107. primaryReadWrite:
  108. url: jdbc:mysql://172.17.110.160/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  109. username: ssgg
  110. password: ssgg
  111. primaryRead:
  112. url: jdbc:mysql://172.17.110.160/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  113. username: ssgg
  114. password: ssgg
  115. redis:
  116. host: 172.19.103.88 # Redis server host.
  117. port: 6379 # Redis server port.
  118. followupMessage:
  119. cron : 0 5 0 * * ?
  120. jobId : FOLLOWUP_PLAN_JOB
  121. fv:
  122. jdbc:
  123. driver: com.mysql.jdbc.Driver
  124. url: jdbc:mysql://172.17.110.160/fv?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  125. username: ssgg
  126. password: ssgg
  127. systemConfig:
  128. msg_push_server: http://127.0.0.1:3000
  129. ---
  130. spring:
  131. profiles: prod
  132. datasource:
  133. primaryReadWrite:
  134. url: jdbc:mysql://59.61.92.94:3306/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  135. username: wlyy
  136. password: jkzlehr@123
  137. primaryRead:
  138. url: jdbc:mysql://59.61.92.94:8883/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  139. username: wlyy
  140. password: jkzlehr@123
  141. redis:
  142. host: 120.41.253.95 # Redis server host.
  143. port: 6380 # Redis server port.
  144. password: jkzl_ehr
  145. followupMessage:
  146. cron : 0 5 0 * * ?
  147. jobId : FOLLOWUP_PLAN_JOB
  148. fv:
  149. jdbc:
  150. driver: com.mysql.jdbc.Driver
  151. url: jdbc:mysql://59.61.92.94:8883/fv?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  152. username: wlyy
  153. password: jkzlehr@123
  154. systemConfig:
  155. msg_push_server: http://127.0.0.1:3000
  156. ---
  157. spring:
  158. profiles: dev
  159. datasource:
  160. primaryReadWrite: #只读库 主库
  161. url: jdbc:mysql://172.19.103.77/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  162. username: root
  163. password: 123456
  164. primaryRead: #只读库 从库
  165. url: jdbc:mysql://172.19.103.77/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  166. username: root
  167. password: 123456
  168. redis:
  169. host: 172.19.103.47 # Redis server host.
  170. port: 6379 # Redis server port.
  171. followupMessage:
  172. cron : 0 5 0 * * ?
  173. jobId : FOLLOWUP_PLAN_JOB
  174. fv:
  175. jdbc:
  176. driver: com.mysql.jdbc.Driver
  177. url: jdbc:mysql://172.19.103.77/fv?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  178. username: root
  179. password: 123456
  180. systemConfig:
  181. msg_push_server: http://172.19.103.76:3000