配置文件优化

This commit is contained in:
tanghc
2019-07-18 15:28:48 +08:00
parent fce0b4d242
commit 167d0a77f7
18 changed files with 12 additions and 275 deletions

View File

@@ -2,10 +2,8 @@ server.port=3333
spring.application.name=book-service
spring.application.description=book服务
# eureka注册中心如果使用nacos注册中心这里要注释掉
eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/
# nacos注册中心
# spring.nacos.discovery.server-addr=127.0.0.1:8848
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
# zookeeper配置
spring.cloud.zookeeper.connect-string=localhost:2181

View File

@@ -1,37 +0,0 @@
server:
port: 3333
spring:
application:
name: book-service
cloud:
zookeeper:
# zookeeper配置
connect-string: localhost:2181
# nacos注册中心和eureka只能用一个
nacos:
discovery:
server-addr: 127.0.0.1:8848
# eureka注册中心如果使用nacos注册中心这里要注释掉
#eureka:
# client:
# serviceUrl:
# defaultZone: http://localhost:1111/eureka/
# dubbo consumer
demo:
service:
version: 1.0.0
dubbo:
application:
id: dubbo-consumer-demo
name: dubbo-consumer-demo
protocol:
id: dubbo
name: dubbo
port: 12345
management:
port: 8081

View File

@@ -1,3 +0,0 @@
spring:
profiles:
active: dev

View File

@@ -2,10 +2,8 @@ server.port=2222
spring.application.name=story-service
spring.application.description=story服务
# eureka注册中心如果使用nacos注册中心这里要注释掉
eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/
# nacos注册中心
# spring.nacos.discovery.server-addr=127.0.0.1:8848
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
# zookeeper配置
spring.cloud.zookeeper.connect-string=localhost:2181

View File

@@ -1,32 +0,0 @@
server:
port: 2222
spring:
application:
name: story-service
description: story服务
cloud:
zookeeper:
connect-string: localhost:2181
# nacos注册中心和eureka只能用一个
nacos:
discovery:
server-addr: 127.0.0.1:8848
# eureka注册中心如果使用nacos注册中心这里要注释掉
#eureka:
# client:
# serviceUrl:
# defaultZone: http://localhost:1111/eureka/
# dubbo provider
dubbo:
protocol:
name: dubbo
port: 12345
registry:
address: N/A
scan:
base-packages: com.gitee.sop.storyweb.service

View File

@@ -1,3 +0,0 @@
spring:
profiles:
active: dev