Browse Source

本地不用注册中心时需要配置

tags/正式3.2.0
王宁 2 years ago
parent
commit
770311c23e
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      sstudy/src/main/resources/application.properties

+ 2
- 0
sstudy/src/main/resources/application.properties View File

@@ -4,6 +4,8 @@ server.port=8086
4 4
 spring.application.name=sstudy
5 5
 #注册到我们本地的eureka注册中心,端口8081
6 6
 eureka.client.service-url.defaultZone=http://127.0.0.1:8081/eureka/
7
+#eureka.client.register-with-eureka=false
8
+#eureka.client.fetch-registry=false
7 9
 #设置eureka输出日志级别
8 10
 logging.level.com.netflix=error
9 11
 

Loading…
Cancel
Save