mirror of https://gitee.com/maxjhandsome/pig
抽取公共配置到config-server
This commit is contained in:
parent
671d378253
commit
9a8c4c1d7a
|
@ -1,21 +1,33 @@
|
|||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@pig-eureka:1025/eureka
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: pig-admin-service
|
||||
profiles:
|
||||
active: dev
|
||||
cloud:
|
||||
config:
|
||||
fail-fast: true
|
||||
discovery:
|
||||
service-id: pig-config-server
|
||||
enabled: true
|
||||
profile: local
|
||||
profile: ${spring.profiles.active}
|
||||
label: master
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: dev
|
||||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: prd
|
||||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@pig-eureka:1025/eureka
|
||||
|
|
|
@ -1,19 +1,33 @@
|
|||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@pig-eureka:1025/eureka
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: pig-auth-service
|
||||
profiles:
|
||||
active: dev
|
||||
cloud:
|
||||
config:
|
||||
fail-fast: true
|
||||
discovery:
|
||||
service-id: pig-config-server
|
||||
enabled: true
|
||||
profile: local
|
||||
profile: ${spring.profiles.active}
|
||||
label: master
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: dev
|
||||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: prd
|
||||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@pig-eureka:1025/eureka
|
||||
|
|
|
@ -4,18 +4,28 @@ server:
|
|||
spring:
|
||||
application:
|
||||
name: pig-config-server
|
||||
profiles:
|
||||
active: dev
|
||||
cloud:
|
||||
config:
|
||||
server:
|
||||
git:
|
||||
uri: https://github.com/jieblog/pig-config.git
|
||||
bus:
|
||||
trace:
|
||||
enabled: true
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: dev
|
||||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@pig-eureka:1025/eureka
|
||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||
---
|
||||
spring:
|
||||
profiles: prd
|
||||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@pig-eureka:1025/eureka
|
||||
|
|
|
@ -1,18 +1,33 @@
|
|||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@pig-eureka:1025/eureka
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: pig-gateway
|
||||
profiles:
|
||||
active: dev
|
||||
cloud:
|
||||
config:
|
||||
fail-fast: true
|
||||
discovery:
|
||||
service-id: pig-config-server
|
||||
enabled: true
|
||||
profile: local
|
||||
profile: ${spring.profiles.active}
|
||||
label: master
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: dev
|
||||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@localhost:1025/eureka
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: prd
|
||||
eureka:
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://pig:gip6666@pig-eureka:1025/eureka
|
||||
|
|
7
pom.xml
7
pom.xml
|
@ -54,6 +54,13 @@
|
|||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.spring.platform</groupId>
|
||||
<artifactId>platform-bom</artifactId>
|
||||
<version>Brussels-SR6</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-dependencies</artifactId>
|
||||
|
|
Loading…
Reference in New Issue