浏览代码

更新 'src/main/resources/bootstrap.yml'

胡魁 3 年之前
父节点
当前提交
a6e95d1a94
共有 1 个文件被更改,包括 47 次插入45 次删除
  1. 47 45
      src/main/resources/bootstrap.yml

+ 47 - 45
src/main/resources/bootstrap.yml

@@ -1,50 +1,52 @@
-api.version: api/v1
 spring:
+  application:
+    name: dil-cd-service
   profiles:
-    include: ${SPRING_PROFILES:dev}
-  jackson:
-      date-format: yyyy-MM-dd HH:mm:ss
-      time-zone: GMT+8
-#    serialization: {WRITE_DATES_AS_TIMESTAMPS: true}
-  messages:
-    basename: message
-    encoding: UTF-8
-  mvc:
-    static-path-pattern:
-
-#eureka设置
+    active: dev
+  zipkin:
+    base-url: http://${ZIPKIN_HOST:localhost}:9411
+  sleuth:
+    sampler:
+      #默认值为0.1f,现在为了测试设置100%采集
+      percentage: 1.0
+  cloud:
+    config:
+      fail-fast: false
+      discovery:
+        enabled: false
+        service-id: config-server
+    bus:
+      trace:
+        enabled: false
+      enabled: false
+server:
+  port: 80
 eureka:
   client:
-    service-url:
-      defaultZone: http://root:root@discovery.steerinfo.com/eureka/
-
-genxml:
-  pth: com/a
-cache:
-  level: 2
-redis:
-  host: 10.10.50.28
-  port: 6379
-  pwd: 123456
-  project:
-    prefix: sysmanage
-  pool:
-    maxTotal: 8
-    maxWaitMillis: 1000
-    maxIdle: 8
-  cache:
-    time: 864000000
-  database: 0
-
+    serviceUrl:
+        defaultZone: http://root:root@${EUREKA_HOST:localhost}:${EUREKA_PORT:8061}/eureka/
+#      defaultZone: http://root:root@http://172.16.2.149:32101/eureka/
+    metadata-map:
+      cluster: ribbon
+  instance:
+    hostname: dil-cd-service
+    status-page-url: http://${SWAGGER_INDEX:tgwl.steerinfo.com}/swagger-ui.html
+    prefer-ip-address: true
+    instance-id: ${spring.cloud.client.ip-address}:${server.port}
+#禁止调用eureka client获取注册列表信息
+ribbon:
+  eureka:
+    enabled: true
+#新版配置,否则后面dashboard无法找到hystrix.stream
+management:
+  endpoints:
+    web:
+      exposure:
+        include: '*'
 
-
-mybatis:
-  type-aliases-package: com.steerinfo.dil.model
-  mapper-locations: classpath:com/steerinfo/dil/mapper/*.xml
-  configuration:
-    #    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-    mapUnderscoreToCamelCase: true
-    call-setters-on-nulls: true
-
-server:
-  port: 8081
+feign:
+  client:
+    config:
+      default:
+        connect-timeout: 5000
+        read-timeout: 10000