修改配置文件

This commit is contained in:
tanghc
2019-04-16 16:31:07 +08:00
parent 8cc2ce5a9a
commit f9c8a859b7
12 changed files with 105 additions and 93 deletions

View File

@@ -0,0 +1,17 @@
server:
port: 3333
spring:
application:
name: book-service
cloud:
zookeeper:
connect-string: localhost:2181
eureka:
port: 1111
host: localhost
client:
serviceUrl:
defaultZone: http://${eureka.host}:${eureka.port}/eureka/

View File

@@ -1,9 +1,3 @@
server:
port: 3333
eureka:
port: 1111
host: localhost
client:
serviceUrl:
defaultZone: http://${eureka.host}:${eureka.port}/eureka/
spring:
profiles:
active: dev

View File

@@ -1,7 +0,0 @@
spring:
application:
name: book-service
cloud:
zookeeper:
connect-string: localhost:2181

View File

@@ -0,0 +1,26 @@
server:
port: 2121
# 指定注册中心
eureka:
port: 1111
host: localhost
client:
serviceUrl:
defaultZone: http://${eureka.host}:${eureka.port}/eureka/
spring:
application:
# 指定服务名
name: easyopen-service
# 指定zookeeper
cloud:
zookeeper:
connect-string: localhost:2181
# 指定接口路径
easyopen:
prefix-path: /api

View File

@@ -1,26 +1,3 @@
server:
port: 2121
# 指定注册中心
eureka:
port: 1111
host: localhost
client:
serviceUrl:
defaultZone: http://${eureka.host}:${eureka.port}/eureka/
spring:
application:
# 指定服务名
name: easyopen-service
# 指定zookeeper
cloud:
zookeeper:
connect-string: localhost:2181
# 指定接口路径
easyopen:
prefix-path: /api
profiles:
active: dev

View File

@@ -0,0 +1,19 @@
server:
port: 2222
spring:
application:
name: story-service
description: story服务
cloud:
zookeeper:
connect-string: localhost:2181
# 注册中心
eureka:
port: 1111
host: localhost
client:
serviceUrl:
defaultZone: http://${eureka.host}:${eureka.port}/eureka/

View File

@@ -1,9 +1,3 @@
server:
port: 2222
eureka:
port: 1111
host: localhost
client:
serviceUrl:
defaultZone: http://${eureka.host}:${eureka.port}/eureka/
spring:
profiles:
active: dev

View File

@@ -1,8 +0,0 @@
spring:
application:
name: story-service
description: story服务
cloud:
zookeeper:
connect-string: localhost:2181