refactor(all): 优化配置文件,增加一个随机端口的配置
同一个配置文件里用横线分割的写法实际不生效
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
spring:
|
||||||
|
main:
|
||||||
|
banner-mode: off
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
eureka:
|
||||||
|
instance:
|
||||||
|
hostname: localhost
|
||||||
|
prefer-ip-address: true
|
||||||
|
instance-id: ${spring.application.name}-${eureka.instance.hostname}-${random.uuid}-${datetime}
|
||||||
|
client:
|
||||||
|
service-url:
|
||||||
|
defaultZone: http://localhost:35670/eureka/
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: "*"
|
||||||
|
endpoint:
|
||||||
|
prometheus:
|
||||||
|
enabled: true
|
||||||
|
metrics:
|
||||||
|
export:
|
||||||
|
jmx:
|
||||||
|
enabled: false
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
server:
|
||||||
|
port: 0
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
spring:
|
|
||||||
config:
|
|
||||||
activate:
|
|
||||||
on-profile: common
|
|
||||||
main:
|
|
||||||
banner-mode: off
|
|
||||||
server:
|
|
||||||
port: 0
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
spring:
|
|
||||||
config:
|
|
||||||
activate:
|
|
||||||
on-profile: eureka
|
|
||||||
eureka:
|
|
||||||
instance:
|
|
||||||
hostname: localhost
|
|
||||||
prefer-ip-address: true
|
|
||||||
instance-id: ${spring.application.name}-${eureka.instance.hostname}-${random.uuid}-${datetime}
|
|
||||||
client:
|
|
||||||
service-url:
|
|
||||||
defaultZone: http://localhost:35670/eureka/
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
spring:
|
|
||||||
config:
|
|
||||||
activate:
|
|
||||||
on-profile: metrics
|
|
||||||
management:
|
|
||||||
endpoints:
|
|
||||||
web:
|
|
||||||
exposure:
|
|
||||||
include: "*"
|
|
||||||
endpoint:
|
|
||||||
prometheus:
|
|
||||||
enabled: true
|
|
||||||
metrics:
|
|
||||||
export:
|
|
||||||
jmx:
|
|
||||||
enabled: false
|
|
||||||
@@ -2,4 +2,4 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: service-flink-query
|
name: service-flink-query
|
||||||
profiles:
|
profiles:
|
||||||
active: common,eureka,metrics
|
include: random-port,common,eureka,metrics
|
||||||
@@ -1,7 +1,3 @@
|
|||||||
spring:
|
|
||||||
config:
|
|
||||||
activate:
|
|
||||||
on-profile: forest
|
|
||||||
forest:
|
forest:
|
||||||
backend: httpclient
|
backend: httpclient
|
||||||
timeout: 60000
|
timeout: 60000
|
||||||
@@ -2,4 +2,4 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: service-hudi-query
|
name: service-hudi-query
|
||||||
profiles:
|
profiles:
|
||||||
active: common,eureka,metrics,forest
|
include: random-port,common,eureka,metrics,forest
|
||||||
@@ -2,7 +2,7 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: service-info-query
|
name: service-info-query
|
||||||
profiles:
|
profiles:
|
||||||
active: common,eureka,metrics
|
include: random-port,common,eureka,metrics
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://132.121.204.217:17906/iap-datahub?useSSL=false
|
url: jdbc:mysql://132.121.204.217:17906/iap-datahub?useSSL=false
|
||||||
username: odcp
|
username: odcp
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: service-pulsar-query
|
name: service-pulsar-query
|
||||||
profiles:
|
profiles:
|
||||||
active: common,eureka,metrics
|
include: random-port,common,eureka,metrics
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
|
server:
|
||||||
|
port: 38000
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: service-web
|
name: service-web
|
||||||
profiles:
|
profiles:
|
||||||
include: common,eureka,metrics,forest
|
include: common,eureka,metrics,forest
|
||||||
jackson:
|
jackson:
|
||||||
default-property-inclusion: non_null
|
default-property-inclusion: non_null
|
||||||
server:
|
|
||||||
port: 38000
|
|
||||||
@@ -2,4 +2,4 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: service-yarn-query
|
name: service-yarn-query
|
||||||
profiles:
|
profiles:
|
||||||
active: common,eureka,metrics
|
include: random-port,common,eureka,metrics
|
||||||
|
|||||||
Reference in New Issue
Block a user