refactor(all): 优化配置文件

This commit is contained in:
2023-05-01 16:48:15 +08:00
parent a8f3b4c9bf
commit 8731f641ea
5 changed files with 46 additions and 25 deletions

View File

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

View File

@@ -1,8 +0,0 @@
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,12 +0,0 @@
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
prometheus:
enabled: true
metrics:
export:
jmx:
enabled: false

View File

@@ -0,0 +1,42 @@
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

View File

@@ -1,3 +1,7 @@
spring:
config:
activate:
on-profile: forest
forest:
backend: httpclient
timeout: 60000