application.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. server:
  2. port: 8080
  3. servlet:
  4. context_path: /
  5. compression:
  6. enabled: true
  7. mime-types: application/json,application/xml,text/html,text/xml,text/plain
  8. error:
  9. whitelabel:
  10. enabled: false
  11. spring:
  12. profiles:
  13. active: dev
  14. datasource:
  15. url: jdbc:mysql://mysql.izouma.com/exam?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8
  16. username: microball
  17. password: 2wsx@WSX#EDC
  18. hikari:
  19. minimum-idle: 5
  20. maximum-pool-size: 30
  21. auto-commit: true
  22. idle-timeout: 30000
  23. max-lifetime: 1800000
  24. connection-timeout: 30000
  25. connection-test-query: SELECT 1
  26. jpa:
  27. database: MySQL
  28. database_platform: org.hibernate.dialect.MySQL5InnoDBDialect
  29. hibernate:
  30. ddl_auto: update
  31. properties:
  32. hibernate:
  33. enable_lazy_load_no_trans: true
  34. redis:
  35. host: 127.0.0.1
  36. port: 6379
  37. lettuce:
  38. pool:
  39. max_active: 8
  40. max_idle: 8
  41. min_idle: 0
  42. servlet:
  43. multipart:
  44. max_file_size: 100MB
  45. max_request_size: 100MB
  46. freemarker:
  47. settings:
  48. number_format: 0
  49. cache:
  50. type: caffeine
  51. jwt:
  52. secret: XvAD0kboD76Dpebm
  53. header: Authorization
  54. expiration: 2592000 #30days
  55. wx:
  56. mp:
  57. app_id: wx2375cba2eec2c479
  58. app_secret: 28e4829124860d9ef9e2f32aeefd1111
  59. ma:
  60. app_id: wx6517cbf58115c508
  61. app_secret: 8af0e8ba28ffddfb7e574e6c7cb6aaf1
  62. msg_token: msgToken
  63. msg_aes_key: aesKey
  64. msg_format: JSON
  65. pay:
  66. appId: wx2375cba2eec2c479
  67. mchId: 1529090291
  68. mchKey: uDusnGcUqYyWqsBdmvuioxDhtgZErwtu
  69. subAppId: #服务商模式下的子商户公众账号ID
  70. subMchId: #服务商模式下的子商户号
  71. keyPath: classpath:/cert/apiclient_cert.p12
  72. notifyUrl: http://exam.izouma.com/wx/payNotify
  73. refundNotifyUrl: http://exam.izouma.com/wx/refundNotify
  74. storage:
  75. provider: aliyun
  76. local_path: /var/www/upload/
  77. aliyun:
  78. access-key-id: PXzJyah5rZfWHIIH
  79. access-key-secret: e1MS6j0wypXJrw8CM0hObZu8qKbfah
  80. oss-end-point: oss-cn-hangzhou.aliyuncs.com
  81. oss-bucket-name: exam
  82. oss-domain: https://exam.oss-cn-hangzhou.aliyuncs.com
  83. njwl:
  84. app_id: 189610
  85. app_key: 3e8d47d8-e6de-4b75-aa07-02b0d6c83678
  86. url: http://sms.njlyw.cn/ApiSmsSer/NjuSms/SubmitMultipleMessage
  87. general:
  88. host: http://exam.izouma.com
  89. ---
  90. spring:
  91. profiles: test
  92. url: jdbc:mysql://mysql.izouma.com/exam_test?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8
  93. ---
  94. spring:
  95. profiles: prod
  96. url: jdbc:mysql://mysql.izouma.com/exam?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8