server:
port: 8081
spring:
application:
name: item-service
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/leyou
username: root
password: 123456
eureka:
client:
service-url:
defaultZone: http://127.0.0.1:10086/eureka
instance:
prefer-ip-address: true
ip-address: 127.0.0.1
#保证注册到eureka服务器时,显示的服务名称为ip地址而不是localhost域名
zuul:
prefix: /api
ribbon:
ConnectionTimeout: 1000
ReadTimeout: 3500
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 0
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliiseconds: 5000
服务器注册到eureka时,配置文件中instance的作用
最新推荐文章于 2022-01-16 12:16:15 发布