Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
eureka-server-dev.yml 645 Bytes
Copy Edit Web IDE Raw Blame History
yuwen authored 2020-09-21 10:45 . 提交Ereka Server微服务启动配置
server:
port: 7001
eureka:
instance:
#eureka服务端的实例名字
hostname: localhost
client:
#表识不向注册中心注册自己
register-with-eureka: false
#表示自己就是注册中心,职责是维护服务实例,并不需要去检索服务
fetch-registry: false
service-url:
#设置与eureka server交互的地址查询服务和注册服务都需要依赖这个地址
defaultZone: http://localhost:7001/eureka server:
#关闭自我保护模式 enable-self-preservation: false
spring:
security:
user:
name: eureka
password: eureka123456

Comment ( 0 )

Sign in for post a comment