加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
application.yml 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
info:
description: Spring Cloud Samples
url: https://github.com/spring-cloud-samples
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
---
spring:
profiles: cloud
cloud:
config:
uri: ${vcap.services.${PREFIX:}configserver.credentials.uri:http://user:password@${PREFIX:}configserver.${application.domain:cfapps.io}}
oauth2:
client:
tokenUri: ${vcap.services.${PREFIX:}sso.credentials.tokenUri:}
authorizationUri: ${vcap.services.${PREFIX:}sso.credentials.authorizationUri:}
clientId: ${vcap.services.${PREFIX:}sso.credentials.clientId:}
clientSecret: ${vcap.services.${PREFIX:}sso.credentials.clientSecret:}
resource:
tokenInfoUri: ${vcap.services.${OAUTH2_RESOURCE_SERVICEID:${oauth2.resource.serviceId:sso}}.credentials.tokenInfoUri:}
serviceId: ${PREFIX:}resource
application:
domain: ${APPLICATION_DOMAIN:cfapps.io}
endpoints:
restart: enabled
eureka:
password: password
instance:
hostname: ${vcap.application.uris[0]:localhost}
nonSecurePort: 80
client:
serviceUrl:
defaultZone: ${vcap.services.${PREFIX:}eureka.credentials.uri:http://user:${eureka.password:}@${PREFIX:}eureka.${application.domain:cfapps.io}}/eureka/
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
ribbon:
ConnectTimeout: 3000
ReadTimeout: 60000
---
spring:
profiles: docker
cloud:
config:
uri: http://${CONFIGSERVER_1_PORT_8888_TCP_ADDR:localhost}:8888
endpoints:
restart: enabled
eureka:
instance:
nonSecurePort: 80
preferIpAddress: true
client:
serviceUrl:
defaultZone: http://${EUREKA_1_PORT_8761_TCP_ADDR:localhost}:8761/eureka/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化