bootstrap.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. server:
  2. port: 9011
  3. tomcat:
  4. uri-encoding: utf-8
  5. # 注册中心配置
  6. eureka:
  7. client:
  8. service-url:
  9. defaultZone: http://172.16.0.46:9711/eureka/
  10. instance:
  11. prefer-ip-address: true
  12. # 每隔10s发送一次心跳(默认30s)
  13. lease-renewal-interval-in-seconds: 10
  14. # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
  15. lease-expiration-duration-in-seconds: 30
  16. spring:
  17. application:
  18. name: depot-number-manage
  19. # 数据库配置
  20. datasource:
  21. driverClassName: com.mysql.jdbc.Driver
  22. url:jdbc:mysql://101.36.160.140:21029/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
  23. username: root
  24. password: 123456
  25. # 缓存配置
  26. session:
  27. store-type: redis
  28. redis:
  29. database: 2
  30. host: 172.16.0.46
  31. port: 6679
  32. password:
  33. timeout: 3000
  34. jedis:
  35. pool:
  36. max-active: 8
  37. max-wait: -1
  38. max-idle: 8
  39. min-idle: 0
  40. servlet:
  41. multipart:
  42. max-file-size: 10Mb
  43. max-request-size: 10Mb
  44. # 静态资源配置
  45. resources:
  46. static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
  47. jackson:
  48. date-format: yyyy-MM-dd
  49. time-zone: GMT+8
  50. web:
  51. upload-path: /home/depot/depot-web/apache-tomcat-8.0.53/webapps/ROOT/WEB-INF/classes/static