application.yaml 3.3 KB

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