Skip to content

Commit 88a23bf

Browse files
authored
Merge pull request #13 from felipemelozx/feat/add-spring-actuator
Configurar Spring Actuator e expor endpoint /actuator/health
2 parents a9f5aac + 0d2170c commit 88a23bf

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/main/resources/application-dev.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ spring.datasource.driver-class-name=org.postgresql.Driver
77
spring.datasource.platform=postgresql
88

99
logging.level.org.flywaydb.core=DEBUG
10-
spring.jpa.show-sql=true
10+
spring.jpa.show-sql=true
11+
management.endpoints.web.exposure.include=health
12+
management.endpoint.health.show-details=always
13+
spring.security.user.name=admin
14+
spring.security.user.password=admin

src/main/resources/application-test.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ spring.jpa.properties.hibernate.format_sql=true
1515

1616
spring.h2.console.enabled=true
1717
spring.h2.console.path=/h2-console
18+
management.endpoints.web.exposure.include=health

src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ spring.datasource.password=developerDB
88
spring.datasource.driver-class-name=org.postgresql.Driver
99
spring.datasource.platform=postgresql
1010
logging.level.org.flywaydb.core=DEBUG
11+
management.endpoints.web.exposure.include=health
1112

1213
spring.jpa.show-sql=true

0 commit comments

Comments
 (0)