application.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. spring:
  2. profiles:
  3. active: dev-localhost
  4. cache:
  5. guava:
  6. spec: expireAfterWrite=30s
  7. datasource:
  8. driver-class-name: com.mysql.jdbc.Driver
  9. # url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  10. # username: mooctest
  11. # password: secr3t!
  12. # Keep the connection alive if idle for a long time (needed in production)
  13. testWhileIdle: true
  14. validationQuery: SELECT 1
  15. # Show or not log for each sql query
  16. jpa:
  17. show-sql: true
  18. # Hibernate ddl auto (create, create-drop, update)
  19. hibernate:
  20. ddl-auto: validate
  21. #hbm2ddl.auto: update
  22. # Naming strategy
  23. naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
  24. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  25. properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
  26. # redis:
  27. # host: 114.55.91.27
  28. # pool: 6379
  29. # password: '#03#05@ise@mooctest'
  30. # jedis:
  31. # pool:
  32. # max-active: 8
  33. # max-idle: 8
  34. # max-wait: -1
  35. # min-idle: 0
  36. # database: 6
  37. servlet:
  38. multipart:
  39. enabled: true
  40. max-file-size: 100MB
  41. max-request-size: 100MB
  42. feature-switch:
  43. default:
  44. role: generalUser
  45. oss:
  46. # accessKeyId: LTAI4Frsvbz6G8RKb9dWDPUz
  47. # accessKeySecret: xdxGJuMlrEMMP3ZKY6n0WyZZNZAqrE
  48. accessKeyId: LTAI4FdrT3HsfdR5edBVN7ws
  49. accessKeySecret: yroxrpm46DzTyzHrLBZzS3MRNIicP6
  50. endPoint: oss-cn-hangzhou.aliyuncs.com
  51. bucketName: mooctest-crowd-service
  52. #user:
  53. # service:
  54. # baseUrl: http://111.231.143.6:8081
  55. cache:
  56. expire:
  57. duration: 7200
  58. agency: 7
  59. ---
  60. spring:
  61. profiles: dev
  62. datasource:
  63. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  64. username: mooctest
  65. password: secr3t!
  66. redis:
  67. host: 59.42.10.53
  68. pool: 6379
  69. password: '#2019@callforttest@!'
  70. jedis:
  71. pool:
  72. max-active: 8
  73. max-idle: 8
  74. max-wait: -1
  75. min-idle: 0
  76. database: 6
  77. user:
  78. service:
  79. baseUrl: http://59.42.10.53:8081
  80. website:
  81. domain: mooctest.net
  82. ---
  83. spring:
  84. profiles: dev-localhost
  85. datasource:
  86. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  87. username: mooctest
  88. password: secr3t!
  89. redis:
  90. host: 59.42.10.53
  91. pool: 6379
  92. password: '#2019@callforttest@!'
  93. jedis:
  94. pool:
  95. max-active: 8
  96. max-idle: 8
  97. max-wait: -1
  98. min-idle: 0
  99. database: 6
  100. user:
  101. service:
  102. baseUrl: http://127.0.0.1:8081
  103. website:
  104. domain: mooctest.net
  105. ---
  106. spring:
  107. profiles: dev-pre
  108. datasource:
  109. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service-pre?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  110. username: mooctest
  111. password: secr3t!
  112. redis:
  113. host: 59.42.10.53
  114. pool: 6379
  115. password: '#2019@callforttest@!'
  116. jedis:
  117. pool:
  118. max-active: 8
  119. max-idle: 8
  120. max-wait: -1
  121. min-idle: 0
  122. database: 6
  123. user:
  124. service:
  125. baseUrl: http://59.42.10.53:8081
  126. website:
  127. domain: mooctest.net
  128. ---
  129. spring:
  130. profiles: pre
  131. datasource:
  132. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  133. username: mooctest
  134. password: secr3t!
  135. redis:
  136. host: 10.18.18.50
  137. pool: 6379
  138. password: '#2019@callforttest@!'
  139. jedis:
  140. pool:
  141. max-active: 8
  142. max-idle: 8
  143. max-wait: -1
  144. min-idle: 0
  145. database: 6
  146. user:
  147. service:
  148. baseUrl: http://10.18.18.50:8081
  149. website:
  150. domain: mooctest.net
  151. ---
  152. spring:
  153. profiles: online
  154. datasource:
  155. url: jdbc:mysql://10.18.18.50:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  156. username: root
  157. password: callfortest_crowd
  158. redis:
  159. host: 10.18.18.50
  160. pool: 6379
  161. password: '#2019@callforttest@!'
  162. jedis:
  163. pool:
  164. max-active: 8
  165. max-idle: 8
  166. max-wait: -1
  167. min-idle: 0
  168. database: 0
  169. user:
  170. service:
  171. baseUrl: http://user.cofortest.com
  172. website:
  173. domain: cofortest.com