application.yaml 3.5 KB

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