配置文件优化

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

@@ -17,7 +17,7 @@ registry.eureka-server-addr=${eureka.url}
# nacos服务器地址
registry.nacos-server-addr=${nacos.url}
# 使用eurekaeureka使用nacos填nacos
registry.name=eureka
registry.name=nacos
spring.cloud.zookeeper.connect-string=${zookeeper.url}

View File

@@ -1,27 +0,0 @@
server:
port: 8083
# 注册中心地址,根据实际情况改,这里只是参数,并不会去注册
registry:
eureka-server-addr: http://localhost:1111/eureka/
# nacos服务器地址
nacos-server-addr: 127.0.0.1:8848
# 使用eurekaeureka使用nacos填nacos
name: nacos
spring:
application:
name: website-server
cloud:
zookeeper:
connect-string: localhost:2181
api:
# 测试地址
url-test: http://api-test.yourdomain.com/api
# 沙箱环境
url-sandbox: http://localhost:8081/api
# 正式地址
url-prod: http://open.yourdomain.com/api
pwd: doc#123

View File

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