application.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # 项目相关配置
  2. poyee:
  3. # 名称
  4. name: product-calendar
  5. # 版本
  6. version: 1.0.1
  7. # 获取ip地址开关
  8. addressEnabled: false
  9. #版本
  10. app-version: dev
  11. #app-version: prod
  12. exchange:
  13. rate:
  14. usd-to-rmb: 7.0
  15. jpy-to-rmb: 0.05
  16. management:
  17. health:
  18. defaults.enabled: false
  19. db.enabled: true
  20. diskspace.enabled: true
  21. #Forest
  22. forest:
  23. #bean-id: config0 # 在spring上下文中bean的id(默认为 forestConfiguration)
  24. #backend: okhttp3 # 后端HTTP框架(默认为 okhttp3)
  25. #max-connections: 1000 # 连接池最大连接数(默认为 500)
  26. #max-route-connections: 500 # 每个路由的最大连接数(默认为 500)你这
  27. #timeout: 30000 # 请求超时时间,单位为毫秒(默认为 3000)
  28. #connect-timeout: 30000 # 连接超时时间,单位为毫秒(默认为 timeout)
  29. read-timeout: 10000 # 数据读取超时时间,单位为毫秒(默认为 timeout)
  30. #max-retry-count: 0 # 请求失败后重试次数(默认为 0 次不重试)
  31. #ssl-protocol: SSLv3 # 单向验证的HTTPS的默认SSL协议(默认为 SSLv3)
  32. #logEnabled: true # 打开或关闭日志(默认为 true)
  33. #log-request: true # 打开/关闭Forest请求日志(默认为 true)
  34. #log-response-status: true # 打开/关闭Forest响应状态日志(默认为 true)
  35. #log-response-content: true # 打开/关闭Forest响应内容日志(默认为 false)
  36. variables:
  37. appleUrl: https://appleid.apple.com/auth
  38. # 开发环境配置
  39. server:
  40. # 服务器的HTTP端口,默认为80
  41. port: 8088
  42. tomcat:
  43. # tomcat的URI编码
  44. uri-encoding: UTF-8
  45. # tomcat最大线程数,默认为200
  46. max-threads: ${SERVER_TOMCAT_MAX_THREADS:800}
  47. # Tomcat启动初始化的线程数,默认值25
  48. min-spare-threads: ${SERVER_TOMCAT_MIN_SPARE_THREADS:30}
  49. #超时时间
  50. connection-timeout: 600000
  51. #basedir: c://tmp/logs
  52. accesslog:
  53. enabled: false
  54. buffered: true
  55. prefix: access_log
  56. file-date-format: .yyyy-MM-dd
  57. # 日志配置
  58. logging:
  59. console.enabled: ${CONSOLE_ENABLED:true}
  60. file.enabled: ${FILE_ENABLED:false}
  61. level:
  62. com.poyee: debug
  63. org.springframework: warn
  64. fluentd:
  65. enabled: ${FLUENTD_ENABLED:false}
  66. host: ${FLUENTD_HOST:127.0.0.1}
  67. port: ${FLUENTD_PORT:24225}
  68. # Spring配置
  69. spring:
  70. jackson:
  71. time-zone: GMT+8
  72. date-format: yyyy-MM-dd HH:mm:ss
  73. #default-property-inclusion: non_null
  74. # 服务模块
  75. devtools:
  76. restart:
  77. # 热部署开关
  78. enabled: true
  79. #数据源配置
  80. datasource:
  81. url: jdbc:postgresql://m2-dev.hobbystocks.cn:5432/tzy_system
  82. username: postgres
  83. password: 123456
  84. type: com.alibaba.druid.pool.DruidDataSource
  85. driver-class-name: org.postgresql.Driver
  86. druid:
  87. # 初始连接数
  88. initialSize: 5
  89. # 最小连接池数量
  90. minIdle: 10
  91. # 最大连接池数量
  92. maxActive: 20
  93. # 配置获取连接等待超时的时间
  94. maxWait: 60000
  95. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  96. timeBetweenEvictionRunsMillis: 30000
  97. #验证连接超时时间(ms)
  98. validationQueryTimeout: 300
  99. # 配置一个连接在池中最小生存的时间,单位是毫秒
  100. minEvictableIdleTimeMillis: 300000
  101. # 配置一个连接在池中最大生存的时间,单位是毫秒
  102. maxEvictableIdleTimeMillis: 900000
  103. webStatFilter:
  104. enabled: false
  105. jpa:
  106. hibernate:
  107. ddl-auto: none
  108. naming:
  109. physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  110. #show-sql: true
  111. properties:
  112. hibernate:
  113. temp:
  114. use_jdbc_metadata_defaults: false
  115. redis:
  116. database: 1
  117. host: 127.0.0.1
  118. #host: hobbystock.cn
  119. port: 6379
  120. password: 123456 # 密码(默认为空)
  121. timeout: 60000 # 连接超时时长(毫秒)
  122. pool:
  123. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  124. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  125. max-idle: 10 # 连接池中的最大空闲连接
  126. min-idle: 5 # 连接池中的最小空闲连接
  127. # Swagger配置
  128. swagger:
  129. # 是否开启swagger
  130. enabled: true
  131. #服务前缀路径
  132. coreService:
  133. baseurl: ${CORESERV_BASEURL:https://coresvc-dev.hobbystocks.cn}
  134. smsUrl: /api/reminder/live/on
  135. appSmsUrl: /api/appmsg/live/on
  136. ipUrl: /api/geo/city
  137. #用户服务
  138. user:
  139. # 用户内网地址
  140. useServiceUrl: ${CORESERV_BASEURL:https://coresvc-dev.hobbystocks.cn}
  141. #用户详情
  142. userInfoUrl: /user
  143. #商家app用户信息
  144. merchantUrl: /user/merchant
  145. #消息推送服务地址
  146. pushBaseUrl: ${CORESERV_BASEURL:https://coresvc-dev.hobbystocks.cn}
  147. # MyBatis
  148. mybatis:
  149. mapper-locations: classpath:mapper/*.xml