feature(all): 优化 yml 配置文件的复用

This commit is contained in:
2023-05-01 15:40:10 +08:00
parent e2520fa15e
commit c076298683
9 changed files with 40 additions and 129 deletions

View File

@@ -0,0 +1,5 @@
spring:
main:
banner-mode: off
server:
port: 0

View File

@@ -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/

View File

@@ -0,0 +1,12 @@
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
prometheus:
enabled: true
metrics:
export:
jmx:
enabled: false

View File

@@ -1,30 +1,5 @@
server:
port: 0
spring:
application:
name: service-flink-query
main:
banner-mode: off
jackson:
serialization:
fail-on-empty-beans: false
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
prometheus:
enabled: true
metrics:
export:
jmx:
enabled: false
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/
profiles:
active: common,eureka,metrics

View File

@@ -0,0 +1,5 @@
forest:
backend: httpclient
timeout: 60000
log-enabled: false
interceptors: com.lanyuanxiaoyao.service.forest.configuration.SpringCloudDiscoveryInterceptor

View File

@@ -1,27 +1,5 @@
server:
port: 0
spring:
application:
name: service-hudi-query
main:
banner-mode: off
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
prometheus:
enabled: true
metrics:
export:
jmx:
enabled: false
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/
profiles:
active: common,eureka,metrics,forest

View File

@@ -1,8 +1,8 @@
server:
port: 0
spring:
application:
name: service-info-query
profiles:
active: common,eureka,metrics
datasource:
url: jdbc:mysql://132.121.204.217:17906/iap-datahub?useSSL=false
username: odcp
@@ -11,28 +11,3 @@ spring:
druid:
initial-size: 5
max-active: 10
main:
banner-mode: off
jackson:
serialization:
fail-on-empty-beans: false
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
prometheus:
enabled: true
metrics:
export:
jmx:
enabled: false
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/

View File

@@ -1,27 +1,5 @@
server:
port: 0
spring:
application:
name: service-pulsar-query
main:
banner-mode: off
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
prometheus:
enabled: true
metrics:
export:
jmx:
enabled: false
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/
profiles:
active: common,eureka,metrics

View File

@@ -1,30 +1,5 @@
server:
port: 0
spring:
application:
name: service-yarn-query
main:
banner-mode: off
jackson:
serialization:
fail-on-empty-beans: false
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
prometheus:
enabled: true
metrics:
export:
jmx:
enabled: false
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/
profiles:
active: common,eureka,metrics