bootstrap-loc.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. server:
  2. port: 8003
  3. #注册到注册中心
  4. eureka:
  5. instance:
  6. prefer-ip-address: true
  7. ip-address: 192.168.2.174
  8. hostname: 192.168.2.174
  9. client:
  10. service-url:
  11. # defaultZone: http://192.168.2.248:${EUREKAPORT:9999}/eureka/
  12. defaultZone: http://112.51.249.202:${EUREKAPORT:9999}/eureka/
  13. spring:
  14. application:
  15. name: tofly-dyrqgpspra
  16. # 配置中心
  17. cloud:
  18. config:
  19. fail-fast: true
  20. name: ${spring.application.name}
  21. profile: ${spring.profiles.active}
  22. discovery:
  23. enabled: true
  24. service-id: tofly-config
  25. gateway:
  26. discovery:
  27. locator:
  28. enabled: true
  29. profiles:
  30. active: dev
  31. main:
  32. allow-bean-definition-overriding: true
  33. # 数据源
  34. datasource:
  35. url: jdbc:oracle:thin:@36.137.119.21:1521/zmgis
  36. driver-class-name: oracle.jdbc.OracleDriver
  37. # driver-class-name: oracle.jdbc.driver.OracleDriver
  38. username: zmrq
  39. password: zmrq
  40. type: com.alibaba.druid.pool.DruidDataSource
  41. druid:
  42. initial-size: 10
  43. min-idle: 1
  44. max-active: 100
  45. max-wait: 60000
  46. time-between-eviction-runsMillis: 60000
  47. min-evictable-idle-timeMillis: 300000
  48. validation-query: select 1 FROM DUAL
  49. test-while-idle: true
  50. test-on-borrow: false
  51. test-on-return: false
  52. pool-prepared-statements: true
  53. max-open-prepared-statements: 20
  54. max-pool-prepared-statement-per-connection-size: 20
  55. filters:
  56. stat:
  57. log-slow-sql: true
  58. slow-sql-millis: 5000
  59. merge-sql: false
  60. wall:
  61. config:
  62. multi-statement-allow: true
  63. # connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  64. use-global-data-source-stat: true
  65. api:
  66. doc:
  67. title: 德阳燃气项目gps等实时信息业务接口 #API文档标题
  68. description: 德阳燃气管线管理信息系统业务应用 #API文档说明
  69. author: wangjian #作者
  70. version: 1.0 #版本号
  71. # scan: com.tofly.demo.controller #扫描包,如果未指明,则只是发布使用@Api注释的类
  72. tofly-filter:
  73. urls:
  74. - /v2/api-docs
  75. - /load*
  76. - /getAsciiDocs**
  77. - /getMarkdownDocs**
  78. - /actuator/**
  79. - /esCarGps