feature(all): 优化 yml 配置文件的复用
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
spring:
|
||||
main:
|
||||
banner-mode: off
|
||||
server:
|
||||
port: 0
|
||||
@@ -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
|
||||
@@ -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
|
||||
5
service-forest/src/main/resources/application-forest.yml
Normal file
5
service-forest/src/main/resources/application-forest.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
forest:
|
||||
backend: httpclient
|
||||
timeout: 60000
|
||||
log-enabled: false
|
||||
interceptors: com.lanyuanxiaoyao.service.forest.configuration.SpringCloudDiscoveryInterceptor
|
||||
@@ -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
|
||||
@@ -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/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user