bootstrap.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. server:
  2. port: 9023
  3. tomcat:
  4. uri-encoding: utf-8
  5. # 注册中心配置
  6. eureka:
  7. client:
  8. service-url:
  9. defaultZone: http://121.37.6.72:9811/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-system
  19. # 数据库配置
  20. datasource:
  21. driverClassName: com.mysql.cj.jdbc.Driver
  22. url: jdbc:mysql://121.37.6.72:3306/depot-neimeng?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
  23. username: root
  24. password: Huawei1234%^&*
  25. # 缓存配置
  26. session:
  27. store-type: redis
  28. redis:
  29. database: 1
  30. host: 121.37.6.72
  31. port: 6379
  32. password: 123456
  33. timeout: 3000
  34. jedis:
  35. pool:
  36. max-active: 8
  37. max-wait: -1
  38. max-idle: 8
  39. min-idle: 0
  40. # 静态资源配置
  41. resources:
  42. static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
  43. web:
  44. upload-path: /upload
  45. #设置全局变量判断是云端还是库端;1云端,2本地
  46. localOrCloud: 1
  47. #设置出入库连接
  48. forTheConnection: http://121.37.6.72:9029/Base/Main.action
  49. #登录密码输入错误限制登录时间
  50. loginTime: 5