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
 spring.application.name=sstudy
4
 spring.application.name=sstudy
5
 #注册到我们本地的eureka注册中心,端口8081
5
 #注册到我们本地的eureka注册中心,端口8081
6
 eureka.client.service-url.defaultZone=http://127.0.0.1:8081/eureka/
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
 #设置eureka输出日志级别
9
 #设置eureka输出日志级别
8
 logging.level.com.netflix=error
10
 logging.level.com.netflix=error
9
 
11
 

Loading…
Cancel
Save