Skip to content

Commit

Permalink
refactor: Move common properties to default profile, clean up profile…
Browse files Browse the repository at this point in the history
…s dev and test
  • Loading branch information
johannmo committed Jul 16, 2024
1 parent 0b02bcd commit 42340d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
10 changes: 2 additions & 8 deletions serviceregistry-server/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spring:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
hibernate:
ddl-auto: validate
security:
user:
name: ${ADMIN_API_USERNAME}
Expand All @@ -22,17 +24,9 @@ server:
management:
server:
port: 8090
endpoint:
health:
show-details: always
probes:
enabled: true
endpoints:
web:
base-path: /
exposure:
include: "info,env,prometheus,health"
enabled-by-default: true
health:
livenessState:
enabled: true
Expand Down
10 changes: 2 additions & 8 deletions serviceregistry-server/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spring:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
hibernate:
ddl-auto: update
security:
user:
name: ${ADMIN_API_USERNAME}
Expand All @@ -22,17 +24,9 @@ server:
management:
server:
port: 8090
endpoint:
health:
show-details: always
probes:
enabled: true
endpoints:
web:
base-path: /
exposure:
include: "info,env,prometheus,health"
enabled-by-default: true
health:
livenessState:
enabled: true
Expand Down
5 changes: 3 additions & 2 deletions serviceregistry-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ management:
server:
port: 9199
endpoints:
enabled-by-default: true
web:
base-path: /manage
exposure:
include: "*"
exclude: shutdown
include: "info,env,prometheus,health"
endpoint:
health:
show-details: always
probes:
enabled: true
info:
Expand Down

0 comments on commit 42340d0

Please sign in to comment.