refactor(all): 优化配置文件
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
spring:
|
||||
main:
|
||||
banner-mode: off
|
||||
server:
|
||||
port: 0
|
||||
@@ -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/
|
||||
@@ -1,12 +0,0 @@
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: "*"
|
||||
endpoint:
|
||||
prometheus:
|
||||
enabled: true
|
||||
metrics:
|
||||
export:
|
||||
jmx:
|
||||
enabled: false
|
||||
42
service-configuration/src/main/resources/application.yml
Normal file
42
service-configuration/src/main/resources/application.yml
Normal 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
|
||||
Reference in New Issue
Block a user