✨ 添加新特性。支持nacos

This commit is contained in:
冷冷 committed 2019-04-18 16:17:08 +08:00
1 parent 4901c2974e
commit e935fa3d72
304 files changed
+51587 -710

No files matched your search

@@ -4,22 +4,13 @@ server:
spring:
application:
name: @artifactId@
#配置中心
cloud:
config:
fail-fast: true
name: ${spring.application.name}
profile: ${spring.profiles.active}
nacos:
discovery:
enabled: true
service-id: pigx-config
server-addr: ${NACOS-HOST:pigx-nacos}:${NACOS-PORT:8848}
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yml
shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
profiles:
active: dev
# 注册中心配置
eureka:
instance:
prefer-ip-address: true
client:
service-url:
defaultZone: http://pig:pig@${EUREKA-HOST:pigx-eureka}:${EUREKA-PORT:8761}/eureka/
active: dev