bootstrap.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. spring:
  2. profiles:
  3. active: clouda
  4. server:
  5. port: 9028
  6. tomcat:
  7. uri-encoding: utf-8
  8. ---
  9. # 注册中心配置 defaultZone: http://eureka-depot:9001/eureka/
  10. eureka:
  11. client:
  12. service-url:
  13. defaultZone: http://eureka-depot:9001/eureka/
  14. registerWithEureka: false
  15. fetchRegistry: false
  16. instance:
  17. prefer-ip-address: true
  18. ip-address: eureka-depot
  19. status-page-url: http://eureka-depot:${server.port}/swagger-ui.html
  20. instance-id: ${eureka.instance.ip-address}:${server.port}
  21. spring:
  22. profiles: locala
  23. application:
  24. name: depot-intelligent
  25. # 数据库配置
  26. datasource:
  27. driver-class-name: com.mysql.jdbc.Driver
  28. url: jdbc:mysql://localhost:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
  29. username: root
  30. password: 123456
  31. # 缓存配置
  32. session:
  33. store-type: redis
  34. redis:
  35. database: 0
  36. host: localhost
  37. port: 6379
  38. password:
  39. timeout: 3000
  40. jedis:
  41. pool:
  42. max-active: 8
  43. max-wait: -1
  44. max-idle: 8
  45. min-idle: 0
  46. # 静态资源配置
  47. resources:
  48. static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
  49. jackson:
  50. date-format: yyyy-MM-dd HH:mm:ss
  51. time-zone: GMT+8
  52. web:
  53. upload-path: D:/upload
  54. #socket地址
  55. #socket-url: 127.0.0.1
  56. #socket-port: 8999
  57. socket-url: localhost
  58. socket-port: 8999
  59. #设置全局变量判断是云端还是库端;1云端,2本地
  60. localOrCloud: 2
  61. # 多通道气体
  62. gas-org-ids: 386,177,273,280,300
  63. # 数量检测版本区分version3
  64. num_version3: :20013
  65. ---
  66. # 注册中心配置 defaultZone: http://eureka-depot:9001/eureka/
  67. eureka:
  68. client:
  69. service-url:
  70. defaultZone: http://localhost:9001/eureka/
  71. instance:
  72. prefer-ip-address: true
  73. lease-renewal-interval-in-seconds: 10
  74. lease-expiration-duration-in-seconds: 30
  75. spring:
  76. profiles: clouda
  77. application:
  78. name: depot-intelligent
  79. # 数据库配置
  80. datasource:
  81. driver-class-name: com.mysql.jdbc.Driver
  82. url: jdbc:mysql://localhost:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
  83. username: root
  84. password: 123456
  85. # 缓存配置
  86. session:
  87. store-type: redis
  88. redis:
  89. database: 0
  90. host: localhost
  91. port: 6379
  92. password:
  93. timeout: 3000
  94. jedis:
  95. pool:
  96. max-active: 8
  97. max-wait: -1
  98. max-idle: 8
  99. min-idle: 0
  100. # 静态资源配置
  101. resources:
  102. static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
  103. jackson:
  104. date-format: yyyy-MM-dd HH:mm:ss
  105. time-zone: GMT+8
  106. web:
  107. upload-path: /home
  108. #socket地址
  109. #socket-url: 127.0.0.1
  110. #socket-port: 8999
  111. socket-url: localhost
  112. socket-port: 8999
  113. #设置全局变量判断是云端还是库端;1云端,2本地
  114. localOrCloud: 2
  115. # 多通道气体
  116. gas-org-ids: 386,177,273,280,300
  117. # 数量检测版本区分version3
  118. num_version3: :20013