diff --git a/doc/docs/files/10011_项目接入到SOP.md b/doc/docs/files/10011_项目接入到SOP.md index 20450d37..76769ac3 100644 --- a/doc/docs/files/10011_项目接入到SOP.md +++ b/doc/docs/files/10011_项目接入到SOP.md @@ -8,7 +8,7 @@ com.gitee.sop sop-service-common - 1.0.0-SNAPSHOT + 最新版本 @@ -17,15 +17,16 @@ ``` -- 配置文件添加eureka配置 +- 配置文件添加 -```yaml -eureka: - port: 1111 # eureka端口号 - host: localhost # eureka地址 - client: - serviceUrl: - defaultZone: http://${eureka.host}:${eureka.port}/eureka/ +```properties +server.port=2222 +# 服务名称 +spring.application.name=story-service +# eureka注册中心 +eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/ +# zookeeper配置 +spring.cloud.zookeeper.connect-string=localhost:2181 ``` - 在springboot启动类上添加`@EnableDiscoveryClient`