配置文件优化

This commit is contained in:
tanghc
2019-07-18 14:34:12 +08:00
parent fd1a779e0b
commit 194a39a042
15 changed files with 209 additions and 4 deletions

View File

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

View File

@@ -0,0 +1 @@
spring.profiles.active=dev