application.yaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. spring:
  9. profiles:
  10. active: dev
  11. datasource:
  12. url: jdbc:mysql://localhost:3306/im_mall?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8
  13. # url: jdbc:mysql://rdsave1o67m1ido6gwp6public.mysql.rds.aliyuncs.com/im_mall?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8
  14. # username: microball
  15. username: root
  16. # password: 2wsx@WSX#EDC
  17. password: 123456
  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. jwt:
  47. secret: XvAD0kboD76Dpebm
  48. header: Authorization
  49. expiration: 2592000 #30days
  50. route:
  51. authentication:
  52. path: /auth
  53. refresh: /refresh
  54. #wx:
  55. # mp:
  56. # app_id: wx2375cba2eec2c479
  57. # app_secret: 28e4829124860d9ef9e2f32aeefd1111
  58. # miniapp:
  59. # app_id: wx6517cbf58115c508
  60. # app_secret: 8af0e8ba28ffddfb7e574e6c7cb6aaf1
  61. # msg_token: msgToken
  62. # msg_aes_key: aesKey
  63. # msg_format: JSON
  64. # pay:
  65. # appId: wx2375cba2eec2c479
  66. # mchId: 1529090291
  67. # mchKey: uDusnGcUqYyWqsBdmvuioxDhtgZErwtu
  68. # subAppId: #服务商模式下的子商户公众账号ID
  69. # subMchId: #服务商模式下的子商户号
  70. # keyPath: classpath:/cert/apiclient_cert.p12
  71. # notifyUrl: http://zmj.izouma.com/wx/payNotify
  72. # refundNotifyUrl: http://zmj.izouma.com/wx/refundNotify
  73. storage:
  74. provider: aliyun
  75. local_path: /var/www/upload/
  76. aliyun:
  77. access-key-id: PXzJyah5rZfWHIIH
  78. access-key-secret: e1MS6j0wypXJrw8CM0hObZu8qKbfah
  79. oss-end-point: oss-cn-hangzhou.aliyuncs.com
  80. oss-bucket-name: ticket-exchange
  81. oss-domain: https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com
  82. ---
  83. spring:
  84. profiles: test
  85. ---
  86. spring:
  87. profiles: prod