├── application-cloud.properties ├── application.properties ├── auth-service.properties ├── dataflow-service.properties ├── eureka-service.properties ├── hystrix-dashboard.properties ├── reservation-client-github.properties ├── reservation-client.properties ├── reservation-service.properties └── zipkin-service.properties /application-cloud.properties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | eureka.instance.hostname=${vcap.application.uris[0]:localhost} 6 | eureka.instance.nonSecurePort=80 7 | eureka.instance.metadataMap.instanceId=${vcap.application.instance_id:${spring.application.name}:${spring.application.instance_id:${server.port}}} 8 | eureka.instance.leaseRenewalIntervalInSeconds = 5 9 | 10 | eureka.client.region = default 11 | eureka.client.registryFetchIntervalSeconds = 5 12 | eureka.client.serviceUrl.defaultZone=${vcap.services.eureka-service.credentials.uri}/eureka/ 13 | 14 | 15 | #spring.zipkin.base-url=${vcap.services.zipkin-service.credentials.uri} 16 | spring.rabbitmq.addresses=${vcap.services.reservations-rabbitmq.credentials.uri} 17 | #spring.rabbitmq.addresses = ${vcap.services.reservations-rabbitmq.credentials.uri} 18 | #spring.rabbitmq.host=${vcap.services.reservations-rabbitmq.credentials.uri} 19 | -------------------------------------------------------------------------------- /application.properties: -------------------------------------------------------------------------------- 1 | spring.sleuth.scheduled.enabled=false 2 | spring.sleuth.async.enabled=false 3 | spring.sleuth.annotation.enabled=false 4 | 5 | 6 | # management endpoints 7 | management.endpoints.web.expose=* 8 | 9 | 10 | management.endpoint.refresh.enabled=true 11 | 12 | 13 | ### REACTIVE 14 | endpoints.default.web.enabled=true 15 | 16 | 17 | # disable JMX 18 | endpoints.jmx.enabled=false 19 | spring.jmx.enabled=false 20 | 21 | 22 | debug=true 23 | spring.sleuth.sampler.percentage=1.0 24 | 25 | info.id=${spring.application.name} 26 | 27 | #server.port=${PORT:0} 28 | 29 | management.security.enabled=false 30 | 31 | logging.level.org.springframework.security=DEBUG 32 | #logging.pattern.console=%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID:- }){magenta} %clr(---){faint} %clr([trace=%X{X-Trace-Id:-},span=%X{X-Span-Id:-}]){yellow} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wex 33 | 34 | spring.sleuth.log.json.enabled=true 35 | 36 | #spring.zipkin.host=${DOCKER_IP} 37 | 38 | #spring.cloud.consul.host=${DOCKER_IP} 39 | #spring.cloud.consul.discovery.hostname=${DOCKER_HOST_IP:cna} 40 | 41 | logging.level.com.netflix.eureka=OFF 42 | logging.level.com.netflix.discovery=OFF 43 | 44 | 45 | #spring.rabbitmq.host=${DOCKER_IP} 46 | #spring.redis.host=${DOCKER_IP} 47 | 48 | #spring.zipkin.base-url=http://${DOCKER_IP}:9411 49 | #spring.zipkin.base-url=http://127.0.0.1:9411 50 | 51 | 52 | 53 | 54 | 55 | endpoints.shutdown.enabled=true 56 | 57 | spring.jpa.generate-ddl=true 58 | 59 | 60 | #eureka.instance.hostname=${vcap.application.uris[0]:localhost} 61 | #eureka.instance.nonSecurePort=80 62 | 63 | 64 | endpoints.shutdown.enabled=true 65 | 66 | spring.jpa.generate-ddl=true 67 | 68 | 69 | ## Rabbit specific binder bits 70 | # spring.cloud.stream.binder.rabbit.default.default-delivery-mode=persistent 71 | # spring.cloud.stream.binder.rabbit.default.acknowledge-mode=manual 72 | # spring.cloud.stream.binder.rabbit.default.durable-subscription=true 73 | # spring.cloud.stream.binder.rabbit.default.transacted=true 74 | # spring.cloud.stream.binder.rabbit.default.default-requeue-rejected=true 75 | # spring.cloud.stream.binder.rabbit.default.auto-bind-dlq=true 76 | # spring.cloud.stream.binder.rabbit.default.republish-to-dlq=true 77 | -------------------------------------------------------------------------------- /auth-service.properties: -------------------------------------------------------------------------------- 1 | server.port=9191 2 | 3 | logging.level.org.springframework.security=DEBUG 4 | 5 | # security.user.name=user 6 | # security.user.password: password 7 | 8 | 9 | server.contextPath = /uaa 10 | 11 | security.sessions = if_required 12 | #security.oauth2.client.clientId: acme 13 | #security.oauth2.client.clientSecret: acmesecret 14 | #security.oauth2.client.authorized-grant-types: authorization_code,refresh_token,password 15 | #security.oauth2.client.scope: openid 16 | -------------------------------------------------------------------------------- /dataflow-service.properties: -------------------------------------------------------------------------------- 1 | server.port=9393 2 | -------------------------------------------------------------------------------- /eureka-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:8761} 2 | 3 | 4 | eureka.client.register-with-eureka=false 5 | eureka.client.fetch-registry=false 6 | #eureka.client.enabled=false 7 | -------------------------------------------------------------------------------- /hystrix-dashboard.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=${PORT:8010} 3 | -------------------------------------------------------------------------------- /reservation-client-github.properties: -------------------------------------------------------------------------------- 1 | 2 | security.oauth2.client.client-id=89630a412fa314777dc2 3 | security.oauth2.client.client-secret=c7a29ec26ec7805e78b496ea67cc13e5a9b8bcf0 4 | security.oauth2.client.access-token-uri=https://github.com/login/oauth/access_token 5 | security.oauth2.client.user-authorization-uri=https://github.com/login/oauth/authorize 6 | security.oauth2.client.client-authentication-scheme=form 7 | security.oauth2.resource.user-info-uri=https://api.github.com/user 8 | security.oauth2.resource.prefer-token-info=false 9 | -------------------------------------------------------------------------------- /reservation-client.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:9999} 2 | 3 | spring.cloud.stream.bindings.output.destination=reservations 4 | 5 | security.oauth2.resource.userInfoUri=http://localhost:9191/uaa/user 6 | 7 | #hystrix.command.default.execution.isolation.strategy=SEMAPHORE 8 | 9 | # 10 | # security.oauth2.client.client-secret=36f1653c889f3cc466519aa873188c33adfd53d4 11 | # security.oauth2.client.client-id=644c5dd8451bad01a627 12 | # security.oauth2.client.user-authorization-uri=https://github.com/login/oauth/authorize 13 | # security.oauth2.client.access-token-uri=https://github.com/login/oauth/access_token 14 | # security.oauth2.client.client-authentication-scheme=form 15 | # security.oauth2.resource.user-info-uri=https://api.github.com/user 16 | # security.oauth2.resource.prefer-token-info=false 17 | -------------------------------------------------------------------------------- /reservation-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:8000} 2 | message = nihao Shanghai!!!!!!!! 3 | 4 | # define the destination to which the input MessageChannel should be bound 5 | spring.cloud.stream.bindings.input.destination = reservations 6 | 7 | # ensures 1 node in a group gets message (point-to-point, not a broadcast) 8 | spring.cloud.stream.bindings.input.group = reservations-group 9 | 10 | # ensure that the Q is durable 11 | spring.cloud.stream.bindings.input.durableSubscription = true 12 | -------------------------------------------------------------------------------- /zipkin-service.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=${PORT:9411} 3 | 4 | spring.datasource.initialize = false 5 | 6 | 7 | spring.sleuth.enabled = false 8 | 9 | zipkin.store.type = mem 10 | --------------------------------------------------------------------------------