修改配置

This commit is contained in:
lishouyu
2017-07-31 17:01:20 +08:00
parent d1e50ef7ec
commit 8fbb9bc9d6
7 changed files with 105 additions and 106 deletions
@@ -1,15 +1,14 @@
package com.micro.fast.config.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;
@SpringBootApplication
@EnableConfigServer //开启配置中心相关服务
public class ConfigServerApplication {
public static void main(String[] args) {
SpringApplication.run(ConfigServerApplication.class, args);
}
}
package com.micro.fast.config.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
@SpringBootApplication
@EnableConfigServer //开启配置中心相关服务
public class ConfigServerApplication {
public static void main(String[] args) {
SpringApplication.run(ConfigServerApplication.class, args);
}
}
@@ -1,27 +1,27 @@
# 只是用来在本地编写文件用,无任何使用
info:
app:
profiles: dev
name: eureka-server #从pom.xml中获取
description: eureka-server
spring:
application:
name: eureka-server # 实例的名称
server:
port: 10002
eureka:
client:
service-url:
defaultZone: http://192.168.0.103:10003/eureka #和其他注册中心连接
instance:
hostname: www.eureka.server.com # 实例的主机名
# 健康检查的配置
management:
health:
mail:
enabled: false
redis:
enabled: false
security:
enabled: false #springbooot1.5.*以后如果要使用refresh功能的要设置false
# 只是用来在本地编写文件用,无任何使用
info:
app:
profiles: dev
name: eureka-server #从pom.xml中获取
description: eureka-server
spring:
application:
name: eureka-server # 实例的名称
server:
port: 10002
eureka:
client:
service-url:
defaultZone: http://127.0.0.1:10003/eureka #和其他注册中心连接
instance:
hostname: www.eureka.server.com # 实例的主机名
# 健康检查的配置
management:
health:
mail:
enabled: false
redis:
enabled: false
security:
enabled: false #springbooot1.5.*以后如果要使用refresh功能的要设置false
port: 20002
@@ -2,7 +2,7 @@
spring:
cloud:
config:
uri: http://192.168.0.103:10001/
uri: http://127.0.0.1:10001/
profile: dev
label: master
name: eureka-server
@@ -1,27 +1,27 @@
# 只是用来在本地编写文件用,无任何使用
info:
app:
profiles: dev
name: eureka-server2 #从pom.xml中获取
description: eureka-server2
spring:
application:
name: eureka-server2 # 实例的名称
server:
port: 10003
eureka:
client:
service-url:
defaultZone: http://192.168.0.103:10002/eureka #和其他注册中心连接
instance:
hostname: www.eureka.server2.com # 实例的主机名
# 健康检查的配置
management:
health:
mail:
enabled: false
redis:
enabled: false
security:
enabled: false #springbooot1.5.*以后如果要使用refresh功能的要设置false
# 只是用来在本地编写文件用,无任何使用
info:
app:
profiles: dev
name: eureka-server2 #从pom.xml中获取
description: eureka-server2
spring:
application:
name: eureka-server2 # 实例的名称
server:
port: 10003
eureka:
client:
service-url:
defaultZone: http://127.0.0.1:10002/eureka #和其他注册中心连接
instance:
hostname: www.eureka.server2.com # 实例的主机名
# 健康检查的配置
management:
health:
mail:
enabled: false
redis:
enabled: false
security:
enabled: false #springbooot1.5.*以后如果要使用refresh功能的要设置false
port: 20003
@@ -1,7 +1,7 @@
spring:
cloud:
config:
name: eureka-server2
profile: dev
label: master
uri: http://192.168.0.103:10001/
spring:
cloud:
config:
name: eureka-server2
profile: dev
label: master
uri: http://127.0.0.1:10001/
+30 -30
View File
@@ -1,30 +1,30 @@
# 只是用来在本地编写文件用,无任何使用
info:
app:
profiles: dev
name: upms
description: upms
spring:
application:
name: upms
server:
port: 10004
eureka:
client:
serviceUrl:
defaultZone: http://192.168.0.103:10002/eureka/,http://192.168.0.103:10003/eureka/ #配置所有的注册中心
instance:
hostname: www.upms.com
feign:
hystrix:
enabled: true #开启监控熔断
# 健康检查的相关配置
management:
health:
mail:
enabled: false
redis:
enabled: false
security:
enabled: false #springbooot1.5.*以后如果要使用refresh功能的要设置false
port: 20004
# 只是用来在本地编写文件用,无任何使用
info:
app:
profiles: dev
name: upms
description: upms
spring:
application:
name: upms
server:
port: 10004
eureka:
client:
serviceUrl:
defaultZone: http://127.0.0.1:10002/eureka/,http://127.0.0.1:10003/eureka/ #配置所有的注册中心
instance:
hostname: www.upms.com
feign:
hystrix:
enabled: true #开启监控熔断
# 健康检查的相关配置
management:
health:
mail:
enabled: false
redis:
enabled: false
security:
enabled: false #springbooot1.5.*以后如果要使用refresh功能的要设置false
port: 20004
+1 -1
View File
@@ -2,7 +2,7 @@
spring:
cloud:
config:
uri: http://192.168.0.103:10001/
uri: http://127.0.0.1:10001/
profile: dev
label: master
name: upms