From 773c31cea4cd09211d1d02a1b9139c480f0c09ff Mon Sep 17 00:00:00 2001 From: caoyang Date: Wed, 27 Nov 2019 18:07:50 +0800 Subject: [PATCH] 注册中心配置 --- springboot.iml | 1 + springboot/pom.xml | 4 ++++ springboot/src/main/resources/application.properties | 7 ++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/springboot.iml b/springboot.iml index c4e32f7..56a71e9 100644 --- a/springboot.iml +++ b/springboot.iml @@ -86,6 +86,7 @@ + diff --git a/springboot/pom.xml b/springboot/pom.xml index a38adb4..926e2e3 100644 --- a/springboot/pom.xml +++ b/springboot/pom.xml @@ -79,6 +79,10 @@ + mysql + mysql-connector-java + + org.json json 20180813 diff --git a/springboot/src/main/resources/application.properties b/springboot/src/main/resources/application.properties index 42e8a13..bac78b2 100644 --- a/springboot/src/main/resources/application.properties +++ b/springboot/src/main/resources/application.properties @@ -11,4 +11,9 @@ mybatis.mapper-locations=classpath:/mapper/*.xml mybatis.type-aliases-package=com.sincre.springboot.model -eureka.client.serviceUrl.defaultZone=http://121.40.109.21:8761/eureka/ \ No newline at end of file +#eureka.instance.hostname=localhost +#不向注册中心注册 +eureka.client.register-with-ecueka=false +#不去检索服务 +eureka.client.fetch-registry=false +eureka.client.serviceUrl.defaultZone=http://121.40.109.21:8761/eureka/ -- libgit2 0.21.0