bootstrap.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. api.version: api/v1/trainTms
  2. spring:
  3. profiles:
  4. include: ${SPRING_PROFILES:prod}
  5. jackson:
  6. date-format: yyyy-MM-dd HH:mm:ss
  7. time-zone: GMT+8
  8. # serialization: {WRITE_DATES_AS_TIMESTAMPS: true}
  9. messages:
  10. basename: message
  11. encoding: UTF-8
  12. mvc:
  13. static-path-pattern:
  14. #eureka设置
  15. eureka:
  16. client:
  17. service-url:
  18. defaultZone: http://root:root@${EUREKA_HOST:172.16.33.162}:${EUREKA_PORT:8081}/eureka/
  19. register-with-eureka: false #表示向EurekaServer注册自己 默认为true
  20. fetch-registry: false #是否从EurekaServer抓取已有的注册信息,默认为true,单节点无所谓,集群必须设置为true才能配合ribbon使用负载均衡
  21. instance:
  22. prefer-ip-address: true
  23. status-page-url: http://${spring.cloud.client.ip-address}:${server.port}/swagger-ui.html#/
  24. instance-id: ${spring.cloud.client.ip-address}:${server.port}
  25. genxml:
  26. pth: com/a
  27. cache:
  28. level: 2
  29. redis:
  30. host: 10.10.50.28
  31. port: 6379
  32. pwd: 123456
  33. project:
  34. prefix: sysmanage
  35. pool:
  36. maxTotal: 8
  37. maxWaitMillis: 1000
  38. maxIdle: 8
  39. cache:
  40. time: 864000000
  41. database: 0
  42. mybatis:
  43. type-aliases-package: com.steerinfo.dil.model
  44. mapper-locations: classpath:com/steerinfo/dil/mapper/*.xml
  45. configuration:
  46. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  47. mapUnderscoreToCamelCase: true
  48. call-setters-on-nulls: true